note 15757 added to function.imagecopyresampled

From: Date: Mon, 01 Oct 2001 22:42:53 +0000
Subject: note 15757 added to function.imagecopyresampled
Groups: php.notes 
Request: Send a blank email to php-notes+get-18445@lists.php.net to get a copy of this message
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; -- http://www.php.net/manual/en/function.imagecopyresampled.php http://master.php.net/manage/user-notes.php?action=edit+15757 http://master.php.net/manage/user-notes.php?action=delete+15757 http://master.php.net/manage/user-notes.php?action=reject+15757

« previous php.notes (#18445) next »