From: [EMAIL PROTECTED] Operating system: WinXP PHP version: 4.2.1 PHP Bug Type: Unknown/Other Function Bug description: imagecopyresampled() does not use srcX and srcY
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 bug report at http://bugs.php.net/?id=19993&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19993&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19993&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19993&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19993&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19993&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19993&r=support Expected behavior: http://bugs.php.net/fix.php?id=19993&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19993&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19993&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19993&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19993&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19993&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19993&r=isapi
