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?
 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.