Hello,
How to get image resolution in PHP?
I tried using getimagesize(). It gives only width and height in pixels.
Thanx
image resolution
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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..
The exif extension may be useful..
... which reminds me, I need to put together a class to read XMP sometime..