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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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! > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php