malik30 / timthumb

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

Very bad png quality #483

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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