zhaojie1278/timthumb

Very bad png quality

Closed this issue · 4 comments

What steps will reproduce the problem?

1. Go to http://cdn.squidix.com/images/branding/name-white.png
2. Go to http://cdn.squidix.com/images/branding/name-white.png?h=150

See the quality difference. When resized, the whole image looks grainy, and the 
partially transparent white border of the text turns gray.

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

Latest version on ubuntu.

Original issue reported on code.google.com by u...@squidix.com on 21 Apr 2014 at 3:24

[deleted comment]
Quality problems seem to clear up when I negate it, but come back when I mess 
with brightness.

If I negate an already inverted version of the image, one with black text, it 
looks fine.

http://cdn.squidix.com/images/branding/name-black.png?h=150 Bad
http://cdn.squidix.com/images/branding/name-black.png?f=1&h=150 Good

http://cdn.squidix.com/images/branding/name-white.png?h=150 Bad
http://cdn.squidix.com/images/branding/name-white.png?f=1&h=150 Good

Original comment by u...@squidix.com on 21 Apr 2014 at 3:36

Further testing reveals that this is a GD problem. It's happening outside of 
timthumb as well.


Original comment by u...@squidix.com on 21 Apr 2014 at 3:48

I think this is to do with the matte colour used in the png. Change the matte 
to white and the issue should go away.

Marking this as wontfix since - as you say - it will happen with all image 
resize scripts

Original comment by BinaryMoon on 26 Jun 2014 at 9:29

  • Changed state: WontFix