RE: [PHP] Image Height and Width

From: Date: Tue, 14 Nov 2000 10:40:06 +0000
Subject: RE: [PHP] Image Height and Width
Groups: php.general 
Request: Send a blank email to php-general+get-25171@lists.php.net to get a copy of this message
Hey, thanks for reminding me .. I just improved the function (made it be even sweeter) I guess my skills have also improved since 6 month ago when I wrote that. here it is in a better way: function graphic($image='') { if(!$image) return false; Global $DOCUMENT_ROOT; $image = "/mem/$image.gif"; $full_pass = $DOCUMENT_ROOT.$image; if (file_exists($full_pass)) { $sizes =GetImageSize($full_pass); return "<img src=\"$image\" $sizes[3] border=0>"; } } Cheers! Maxim Maletsky -----Original Message----- From: Durrani [mailto:durrani@comatindia.com] Sent: Tuesday, November 14, 2000 7:29 PM To: php-general@lists.php.net Subject: [PHP] Image Height and Width Hi PHP's How cud i get the properties of a image file when it is uploaded. I am getting the picture size in bytes... but i wud also like to get, the width and height of the particular image. Regards Durrani. When we right click on an image and see the properties, in the browser, it gives the width and height of the image... i want to get them. Please reply to durrani@comatindia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#25171) next »