vishalkoradiya / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

png transparency #402

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.PNG_IS_TRANSPARENT = true
2.External image / Domain included whitelist
3. No zc / no resize / 100% Quality

What is the expected output? What do you see instead?
white instead of transparent

What version of the product are you using? On what operating system?
2.8.10

Please provide any additional information below.
workaround...
Line ~598 if(preg_match('/^image\/png$/i', $mimeType) && PNG_IS_TRANSPARENT && 
$canvas_trans){ 

Line ~1097
            case 'image/png':
                $image = imagecreatefrompng ($src);
//ADD
                imagealphablending($image, true); // setting alpha blending on
                imagesavealpha($image, true); // save alphablending setting (important)

Original issue reported on code.google.com by zack4...@gmail.com on 30 Sep 2012 at 9:59

Attachments:

GoogleCodeExporter commented 8 years ago
This will be in the next release

Original comment by BinaryMoon on 4 Dec 2012 at 9:20