note 58745 deleted from function.imagecopyresampled by cmb
| From: | cmb@php.net | Date: | Wed, 12 Oct 2016 15:50:44 +0000 |
| Subject: | note 58745 deleted from function.imagecopyresampled by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206860@lists.php.net to get a copy of this message | ||
Note Submitter: pike-php at kw dot nl
----
If you have a bug that imagecopyresampled is completely ignoring srcX and srcY (a known and closed
bug - http://bugs.php.net/bug.php?id=12780) you
can ofcourse apply two operations to do the same. E.g., instead of saying
ImageCopyResampled($dst_img, $src_img, 0, 0, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH);
you can say
ImageCopyResampled($tmp_img, $src_img, -$srcX, -$srcY, "BUG","BUG", $orgW,
$orgH, $orgW, $orgH);
ImageCopyResampled($dst_img, $tmp_img, 0, 0, "BUG","BUG", $dstW, $dstH, $srcW,
$srcH);
which has the same effect but is twice as slow and blurry. you may replace
"BUG","BUG" with anything you like without sideeffects :)
$2c,
*pike