php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79068 gdTransformAffineCopy() changes interpolation method
Submitted: 2020-01-06 09:28 UTC Modified: 2020-01-06 09:28 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: 7.3Git-2020-01-06 (Git) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2020-01-06 09:28 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-06 09:28 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-01-06 09:39 UTC] cmb@php.net
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
 [2020-01-06 09:39 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Feb 01 06:01:31 2025 UTC