#19993 [Opn->Csd]: imagecopyresampled() does not use srcX and srcY

From: Date: Sat, 19 Oct 2002 18:10:49 +0000
Subject: #19993 [Opn->Csd]: imagecopyresampled() does not use srcX and srcY
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22856@lists.php.net to get a copy of this message
ID: 19993 Updated by: rasmus@php.net Reported By: neo_starlocke@hotmail.com -Status: Open +Status: Closed Bug Type: Unknown/Other Function Operating System: WinXP PHP Version: 4.2.1 New Comment: This has been fixed in CVS for quite a while. Grab the latest snapshot from snaps.php.net and try again. Previous Comments: ------------------------------------------------------------------------ [2002-10-19 13:08:27] neo_starlocke@hotmail.com Function is question: imagecopyresampled() Problem: arguments - srcX, srcY Detail: Running PHP with the php_gd2.dll extension, imagecopyresampled() failed to use the srcX and srcY arguments. It would always use (0,0) for the source (x,y) point, no matter if a variable (with a number) or a direct number was used in the function. It becomes a problem when trying to make custom "closeup" thumbnails. Had to resort to imagecopyresized() which uses the arguments just fine. Sample: imagecopyresized($thumb, $temp, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH); imagepng($thumb); /// You'll note that the srcX and srcY won't work properly, at least on my system. I used the binary zip download of PHP. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19993&edit=1

« previous php.bugs (#22856) next »