If it is a GIF file, the header format is:
Byte #
0 - 2   GIF
3 - 5   87a or 89a
6 - 7   Width (in pixels)
8 - 9   Height (in pixels)

Be advised, the dimensions are in reverse major order; that is, 50 pixels is 
represented
as "32 00"

----- Original Message -----
From: "Shaun" <[EMAIL PROTECTED]>
To: <>
Sent: Wednesday, December 11, 2002 8:23 AM
Subject: [PHP] upload image


Hi,

i am using a form to upload an image to the server, is it possible to get
the image size during this process so i can store it for later use (i.e.
determining the size of the popup window to view the image)?

thanks for your help




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to