Last update: Sat, Jan 28, 2012 at 10:18 AM.
I want to provide easy access to a library of PNG images through the new macros facility, but we don't have a way to get the height and width of PNG images, just JPEGs and GIFs. So I wrote code that does this. Wasn't so hard.
Followed the spec at
mozilla.org, I was able to find the data in PNG images, and copied the technique used for getting height/width from GIFs.
-