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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC