Anyone can comment on a bug. Have a simpler test case? Does it
work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please
!

Your email address:MUST BE VALID

Solve the problem:14 - 14 = ?

Subscribe to this entry?

[2013-06-20 15:41 UTC] david at grudl dot com

Description:
------------
When is non-truecolor image rotated, it is converted to truecolor. Problem is with background color. In PHP < 5.5 is used correct color, exactly as choosed using imagecolorallocatealpha(), but in PHP 5.5 is used wrong color, probably closest color in palette.

History

It copies pixel by pixel using the colors defined by the color index.
I will check it again but 1st test did not reproduce this problem.
If you have a self contained script to show how this problem occurs in your app,
please post it here.

There are two problems in the current code, which could be a BC break tho'
1. The source image has not transparent color set
2. imagerotate expects a truecolor color (ARGB)
I think 2. is a BC break and should consider the input format as matching the
source image color format. Fix on its way :)