PHPThumb icon indicating copy to clipboard operation
PHPThumb copied to clipboard

Rotating a PNG image doesn't work well

Open ghost opened this issue 15 years ago • 2 comments

Hi, When a PNG file is rotated, it doesn't work. For example, try to rotate this image (http://digitalnewsjournalist.com/files/2010/01/bitly-logo.png) and see the result.

Please verify, Thanks

ghost avatar Nov 09 '10 19:11 ghost

I got the exact same issue it looks like it's removing the transparency, is there a fix allready?

mmeester avatar Mar 07 '11 16:03 mmeester

HI, I had the same issue so i looked in code and php doc and it looks that after imagerotate in GDThumb.inc.php find line : 544 : $this->workingImage = imagerotate($this->oldImage, $degrees, 0); after should be function preserving alpha, just add below : $this->preserveAlpha(); try than, quick fix for now.

senkal avatar May 05 '11 02:05 senkal