Jump to content

PHP / GD Transparency Problem - Horrible Quality


rw57

Recommended Posts

I'm getting some very bad quality using GD to resize some PNGs. If I don't resize them, it seems fine, and if I use GD's negate filter, it seems fine as well, which is very weird. But nothing else seems to help.

This is happening with timthumb (latest) and aq_resize for wordpress.

Original (save to see it, it's white text over a transparent background):

http://cdn.squidix.com/images/branding/name-white.png

GD w/ Negate Filter:

http://cdn.squidix.com/images/brandi....png?f=1&h=150

GD:

http://cdn.squidix.com/images/brandi...hite.png?h=150

The entire thing is now speckled, and there is a gray border around my text replacing the smoothing/transparency that is in the original.

I have been tearing my hair out over this for about 2 hours, at this point I'm pretty confident it's a problem with GD itself. I have other images exhibiting the exact same issue that are resized with GD outside of timthumb.

Anyone else seen this?
 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.