|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Example code: $im = imagecreatefromgif('logo-white.gif'); // http://files.nette.org/icons/logo-white.gif $res = imagerotate($im, 30, imagecolorallocatealpha($im, 0, 0, 0, 0)); // black imagepng($res, 'result.png'); // background is blue PHP 5.5.0 (Thu, 20 Jun 2013 00:29:47) Build: C:\php-sdk\php55\vc11\x86\obj\Release_TS