note 40853 added to function.getimagesize

From: Date: Wed, 17 Mar 2004 07:51:09 +0000
Subject: note 40853 added to function.getimagesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-66943@lists.php.net to get a copy of this message
1) PHP is CASE INSENSITIVE language - using getimagesize() instead of getImageSize() or GeTimAGESizE() has no effect (well, only some code-cleaness etc etc ;-)) 2) using mogrify for image resizing is extremely bad idea, considering we have GD support in PHP. The function which should be adequate is imagecopyresampled() (or, if you prefer, imageCopyResampled(); see http://cz2.php.net/imagecopyresampled). Calling external binaries is always bad idea if you can do the same thing using standard PHP functions. By the way, the code using mogrify still contains GD functions. ---- Manual Page -- http://www.php.net/manual/en/function.getimagesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40853 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40853&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40853&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66943) next »