note 18886 deleted from function.imagecopy by cmb
| From: | cmb@php.net | Date: | Fri, 09 Oct 2020 12:10:02 +0000 |
| Subject: | note 18886 deleted from function.imagecopy by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215557@lists.php.net to get a copy of this message | ||
Note Submitter: robert at scpallas dot com
----
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.
sorry - forgot to fill in my email...
Note that ImageCreateFromJPEG always creates a True Color Image.
You can use ImageCreateTrueColor() instead of Image Create() to solve this problem.