Bug #79068 [Asn->Csd]: gdTransformAffineCopy() changes interpolation method
| From: | cmb@php.net | Date: | Mon, 06 Jan 2020 09:39:51 +0000 |
| Subject: | Bug #79068 [Asn->Csd]: gdTransformAffineCopy() changes interpolation method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224725@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79068&edit=1
ID: 79068
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: gdTransformAffineCopy() changes interpolation method
-Status: Assigned
+Status: Closed
Type: Bug
Package: GD related
Operating System: *
PHP Version: 7.3Git-2020-01-06 (Git)
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4bec59f1751d9d1e302465b68cceffb8df93a7be
Log: Fix #79068: gdTransformAffineCopy() changes interpolation method
Previous Comments:
------------------------------------------------------------------------
[2020-01-06 09:28:40] cmb@php.net
Description:
------------
See <https://github.com/libgd/libgd/issues/585>.
Test script:
---------------
<?php
$src = imagecreatetruecolor(100, 100);
imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff);
imageline($src, 10, 10, 90, 90, 0x000000);
imagesetinterpolation($src, IMG_BSPLINE);
$dst1 = imagerotate($src, 80, 0xffffff);
imagepng($dst1, 'rot_exp.png');
imageaffine($src, [1, 1, 1, 1, 1, 1]);
$dst2 = imagerotate($src, 80, 0xffffff);
imagepng($dst2, 'rot_act.png');
Expected result:
----------------
both images are identical
Actual result:
--------------
both images are similar, but not identical
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79068&edit=1