rifanece / timthumb

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

GIF Transparency not preserved #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Reducing a GIF in quality will discard the transparency of the image,
resulting in a black background.  This can be duplicated with or without
heights and widths specified, as well as with and without zoom-crop.

Original issue reported on code.google.com by mmeehan%...@gtempaccount.com on 28 Jul 2008 at 5:22

GoogleCodeExporter commented 8 years ago
agreed it's a bug but no idea how transparency works in gd. I will see what I 
can
work out but don't hold your breath

Original comment by BinaryMoon on 4 Sep 2008 at 11:14

GoogleCodeExporter commented 8 years ago

Original comment by BinaryMoon on 20 Mar 2009 at 6:49

GoogleCodeExporter commented 8 years ago
Hi, 

you say the bug is fixed, yet with the last file, I still get transparency 
issue with TimThub.

http://francoisnugues.fr/portfolio/2005-2/aquarelles/

Is some thing wrong ?

Thanks

K

Original comment by Thoma...@gmail.com on 21 Dec 2010 at 11:29

GoogleCodeExporter commented 8 years ago
Are you sure you're using latest timthumb ? Check out latest here 
http://blog.baguje.in.rs/wp-content/themes/baguje/scripts/timthumb.php?src=http:
//francoisnugues.fr/portfolio-nugues/2005/137-2005-100x70cm.gif&h=200&w=200&zc=1
 Working great !

Original comment by djevrek on 21 Dec 2010 at 12:18

GoogleCodeExporter commented 8 years ago
djevrek, I can confirm it's not fixed. Check this version:

http://blog.baguje.in.rs/wp-content/themes/baguje/scripts/timthumb.php?src=http:
//francoisnugues.fr/portfolio-nugues/2005/137-2005-100x70cm.gif&h=200&w=700&zc=1
&f=8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8
|8|8|8|8|8|8|8|8|8|8|8|8|8|8|8

you see black borders on the two sides.

Original comment by jeffqinc...@gmail.com on 12 Jan 2011 at 9:46

GoogleCodeExporter commented 8 years ago
Well, that's because you're using 20x gausian blur filter. Try to use same 
number of times that same filter in Photoshop with athat image, and watch magic 
... same will happend. Timthumb scripts works great, and this is wrong bug. 

Check same url without filter, is that ok ?  
http://blog.baguje.in.rs/wp-content/themes/baguje/scripts/timthumb.php?src=http:
//francoisnugues.fr/portfolio-nugues/2005/137-2005-100x70cm.gif&h=200&w=700&zc=1

Original comment by djevrek on 13 Jan 2011 at 8:42