note 18885 added to function.imagecopy
| From: | php-general at lists dot php dot net | Date: | Fri, 08 Feb 2002 13:33:04 +0000 |
| Subject: | note 18885 added to function.imagecopy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26381@lists.php.net to get a copy of this message | ||
If you are getting an error when using ImageCopy(), be sure that both images are of the same type -
either True Color or Palette.
GD 1.x can copy images of different types, but with GD 2.0 this will cause an error.
Note that ImageCreateFromJPEG always creates a True Color Image.
You can use ImageCreateTrueColor() instead of Image Create() to solve this problem.
--
http://www.php.net/manual/en/function.imagecopy.php
http://master.php.net/manage/user-notes.php?action=edit+18885
http://master.php.net/manage/user-notes.php?action=delete+18885
http://master.php.net/manage/user-notes.php?action=reject+18885