Edit report at https://bugs.php.net/bug.php?id=64898&edit=1

 ID:                 64898
 Updated by:         paj...@php.net
 Reported by:        douglas dot wright at pre-school dot org dot uk
 Summary:            imagerotate is broken
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            GD related
 Operating System:   Windows 7
 PHP Version:        5.5.0RC1
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N

 New Comment:

The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2013-05-27 07:22:31] paj...@php.net

Automatic comment on behalf of pierre....@gmail.com
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=2f01e06786c6f4b2479fdb728bd26062d07208e0
Log: fix #64898imagerotate is broken with bilinear interpolation

------------------------------------------------------------------------
[2013-05-26 23:49:48] paj...@php.net

Reproduced. Have to figure out what went wrong lately with the bilinear 
interpolation and the rotate function.

As a work around, add:

imagesetinterpolation($source, IMG_BICUBIC_FIXED); // or any prefered algorithm

before the imagerotate call.

------------------------------------------------------------------------
[2013-05-22 12:54:56] douglas dot wright at pre-school dot org dot uk

Sure, the one I used in the testcase is 
https://www.pre-school.org.uk/publicationimage/236/thumbnail/?size=200

------------------------------------------------------------------------
[2013-05-22 12:46:46] paj...@php.net

Do you have the original image please? You can use tinypic too but I need the 
original images.

------------------------------------------------------------------------
[2013-05-22 10:43:55] douglas dot wright at pre-school dot org dot uk

Description:
------------
When attempting to rotate an image using PHP5.5RC1, the output is corrupted. 
This is a regression from latest stable PHP 5.4

Test script:
---------------
<?php

$source = imagecreatefrompng('original.png');
$rotate = imagerotate($source, 45, imagecolorallocate($source,255,255,255));
imagepng($rotate, 'rotated.png');

Expected result:
----------------
Please see comparison screenshot at http://tinypic.com/r/34t8qdu/5 

Actual result:
--------------
Please see comparison screenshot at http://tinypic.com/r/34t8qdu/5 


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64898&edit=1

Reply via email to