Bug #79068 [NEW]: gdTransformAffineCopy() changes interpolation method
| From: | cmb@php.net | Date: | Mon, 06 Jan 2020 09:28:40 +0000 |
| Subject: | Bug #79068 [NEW]: gdTransformAffineCopy() changes interpolation method | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-224723@lists.php.net to get a copy of this message | ||
From: cmb
Operating system: *
PHP version: 7.3Git-2020-01-06 (Git)
Package: GD related
Bug Type: Bug
Bug description:gdTransformAffineCopy() changes interpolation method
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 bug report at https://bugs.php.net/bug.php?id=79068&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79068&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79068&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79068&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79068&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79068&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79068&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79068&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79068&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79068&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79068&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79068&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79068&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79068&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79068&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79068&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79068&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79068&r=mysqlcfg