> I need to get resolution information (dpi) from any > image of jpg, gif or png formats. > > It would be sufficient to obtain pixel and inches > dimension of such images and calculate resolution by > simply dividing but I haven't found any function that > gets effective dimensions in inches. >
As Jome wrote - getimagesize. Those image formats don't carry any printing format information. The number of inches an image will be depends on what is doing the presentation. You need to calculate your own inches depending on your own printing or display environment. If you want to learn about image file formats. http://www.wotsit.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php