Re: Finding out DPI using GD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karuna wrote:
Hi. Is it possible to find out the dpi of an image (preferably jpeg) in php? I can't seem to find any function to do this.

Cheers,
Karuna.

you can't find the "dpi of an image" because that depends on the medium used to display it. If your printer prints it with a dpi of 1000, it will have a dpi of 1000 at that point. if your screen shows it with a dpi of 250, it will have 250 at that point. DPI does not have anything to do with the image itself, only with how the image is displayed on the medium (a screen, a piece of paper, etc.)
a good explenation of this can be found online, eg here:
http://www.rideau-info.com/photos/mythdpi.html

- tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux