Re: Finding the height of a JPG in pixels using PHP
| From: | Andrew Brampton | Date: | Sat, 05 Apr 2003 13:30:30 +0000 |
| Subject: | Re: Finding the height of a JPG in pixels using PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142504@lists.php.net to get a copy of this message | ||
You can use getimagesize on a jpg file to read its size, so either save the
jpg in MySQL to a file and then do a getImageSize, or before you place the
jpg in to the database read its size and store its dimensions with it in the
db.
Andrew
----- Original Message -----
From: "Phil Schwarzmann" <phil.schwarzmann@filanya.com>
To: <php-general@lists.php.net>
Sent: Saturday, April 05, 2003 10:46 AM
Subject: [PHP] Finding the height of a JPG in pixels using PHP
> I have JPG files stored as binary in a MySQL database. I am displaying
the
> JPGs on the screen and also want to know the height (in pixels) of the
JPG.
> Can PHP do this?
>
>
>
> Thanks!
>
>