Re: How does one obtain the resolution of an image in PHP? [SOLVED]
| From: | Simon M. Campden-Main | Date: | Fri, 17 Mar 2006 16:15:55 +0000 |
| Subject: | Re: How does one obtain the resolution of an image in PHP? [SOLVED] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232140@lists.php.net to get a copy of this message | ||
Good morning, Edwin.
Thank you very much for taking the time to respond to my
query.
E> See if you have ImageMagick installed.
I didn't, but do now.
E> You could probably use the "identify" command to find
the info you need. For more information:
$ man identify
It works, Edwin. A tad slow (3 seconds to process a 762k
jpg), but the -verbose option does provide Resolution in
PPI.
E> Of course, this solution is not *in* PHP but you can
invoke that program inside your PHP scripts (^_-)
Indeed! For those following this thread, you can see the
various outputs at:
http://www.campden-main.com/~orchids/test/test_exif_2.php
Thanks to all and, until the next time, Take Care!
Simon
simon@freelib.org
"- Edwin -" <copperwa11s@yahoo.co.jp> wrote in message
news:20060317151152.cc129da7.copperwa11s@yahoo.co.jp...
> Hi!
>
> On Thu, 16 Mar 2006 08:13:41 -0800
> "Simon M. Campden-Main" <simon@freelib.org> wrote:
>
>> [ . . . ]
>> I want ppi!
>> [ . . . ]
>> I'm running the current Cent OS
>> [ . . . ]
>
> See if you have ImageMagick installed. You could
> probably use the "identify" command to find the
> info you need. For more information:
>
> $ man identify
>
> Of course, this solution is not *in* PHP but you can
> invoke that program inside your PHP scripts (^_-)
>
> HTH,
>
> - Edwin -
>
> --
> "Happy are the mild-tempered ones,
> since they will inherit the earth." - Matthew 5:5