note 15757 rejected from function.imagecopyresampled by didou
| From: | didou@php.net | Date: | Sun, 05 Oct 2003 18:51:30 +0000 |
| Subject: | note 15757 rejected from function.imagecopyresampled by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57856@lists.php.net to get a copy of this message | ||
Note Submitter: andrew@2mx.co.uk
----
As reported above, there is a bug in this function which basically means it ignores the srcX and
srcY parameters. The fix is really easy, assuming you don't mind recompiling GD.
You need to change the lines in gd.c that read:
p = gdImageGetTrueColorPixel ( src, (int) sx,
(int) sy;
to read:
p = gdImageGetTrueColorPixel ( src, (int) sx + srcX,
(int) sy + srcY;