RE: [PHP] Re: Image resolution and php
| From: | Mark Charette | Date: | Wed, 18 Sep 2002 12:16:10 +0000 |
| Subject: | RE: [PHP] Re: Image resolution and php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116729@lists.php.net to get a copy of this message | ||
Images don't have a resolution per se; display devices have a resolution.
Images (the formats you're talking about, anyway) are measured in pixel
width and height. The height and width in any units other than pixels of
course necessitates conversion - for an easy example, a 300x300 image on a
1200x1200dpi printer will be exactly one quarter the size of the same image
printed on a 300x300 dpi printer.
-----Original Message-----
From: Jome [mailto:jome@emoj.net]
Sent: Wednesday, September 18, 2002 8:11 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Image resolution and php
> 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.
http://www.php.net/manual/en/function.getimagesize.php
I'm sligthly confused about what you're looking for, but the above URL
*could* be something.
Jome
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php