note 40853 deleted from function.getimagesize by nlopess
| From: | nlopess@php.net | Date: | Wed, 17 Mar 2004 19:16:08 +0000 |
| Subject: | note 40853 deleted from function.getimagesize by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66978@lists.php.net to get a copy of this message | ||
Note Submitter: php@jkt.wz.cz
----
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.