ID:               19993
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to