Go to wotsit.org and look up the file format for gif/jpg. Embedded in the headers is the raw, unscaled dimension of the image.

At 01:01 -0400 06/18/2003, Adam Stern wrote:
Is there a way to determine the size in pixels of a gif/jpeg file without using GD or anything the requires an external c lib? I'm doing an online photo gallery and want to do a thumbnail page.

Thanks.

- Adam Stern

Reply via email to