Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0RC1

Bug #13305 Thumbnail doesn't preserve transparency
Submitted: 2008-03-04 16:27 UTC
From: cbrunet Assigned: firman
Status: Closed Package: Image_Tools (version 0.4.2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 17 + 24 = ?

 
 [2008-03-04 16:27 UTC] cbrunet (Charles Brunet)
Description: ------------ If you create a thumbnail of an image with a transparent background (a PNG image, for example), you lost the transparency. The solution is to add imagealphablending($target, false); at line 221 of file Image/Tools/Thumbnail.php (just before the call to imagecopy).

Comments

 [2008-03-05 22:30 UTC] cbrunet (Charles Brunet)
And, at line 286: imagealphablending($target, true);
 [2008-05-21 05:04 UTC] firman (Firman Wandayandi)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.