Re: Image resolution and php
| From: | pan | Date: | Wed, 18 Sep 2002 16:17:30 +0000 |
| Subject: | Re: Image resolution and php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116759@lists.php.net to get a copy of this message | ||
> 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/