note 27527 deleted from function.imagecopyresampled by aidan

From: Date: Sun, 15 Aug 2004 13:43:43 +0000
Subject: note 27527 deleted from function.imagecopyresampled by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74696@lists.php.net to get a copy of this message
Note Submitter: anonymous at hotmail dot com ---- 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

« previous php.notes (#74696) next »