Page 1 of 1
image resolution
Posted: Fri Dec 08, 2006 12:58 am
by kpraman
Hello,
How to get image resolution in PHP?
I tried using getimagesize(). It gives only width and height in pixels.
Thanx
Posted: Fri Dec 08, 2006 6:14 am
by John Cartwright
What do you want? To determine the size of an image or the size of the screens resolution?
Posted: Fri Dec 08, 2006 7:22 am
by kpraman
I have to give the details of images for press. It should be in dpi
Posted: Fri Dec 08, 2006 9:01 am
by onion2k
There's no such thing as DPI in digital images. What you're asking for doesn't exist.
Posted: Fri Dec 08, 2006 1:14 pm
by feyd
JPEG and TIFF headers have DPI. If memory serves so does PNG.. but they're useless as at press-time it's most often overridden by the layout editor.
The
exif extension may be useful..
... which reminds me, I need to put together a class to read XMP sometime..