note 27527 added to function.imagecopyresampled
| From: | anonymous at hotmail dot com | Date: | Mon, 09 Dec 2002 23:48:02 +0000 |
| Subject: | note 27527 added to function.imagecopyresampled | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40632@lists.php.net to get a copy of this message | ||
Notice that this code doesn't work as expected:
if (function_exists("imageCopyResampled"))
ImageCopyResampled(...);
else
ImageCopyResized(...);
The function ImageCopyResampled() might exist but it is not working if GD<2.01. Do this instead:
if (function_exists("imageCopyResampled"))
{
if (!@ImageCopyResampled(...))
ImageCopyResized(...);
}
else
ImageCopyResized(...);
Anze
--
http://www.php.net/manual/en/function.imagecopyresampled.php
http://master.php.net/manage/user-notes.php?action=edit+27527
http://master.php.net/manage/user-notes.php?action=delete+27527
http://master.php.net/manage/user-notes.php?action=reject+27527