Search code examples
pngtransparency

Transparency in PNG recognized in some apps but not others


I have a png image, which you can see here:

http://img10.imageshack.us/img10/9145/archer5.png

The background of the sprite is transparent, I see this on all my browsers and in infranview (which I used to create this), and gimp and windows explorer.

However in Photoshop, Paint, and most importantly PHP GD there is a solid background. Check out the image with one of those applications to see what I'm talking about.

The thumbnails produced on my server are all solid background, not good.

What can I do to make the transparency be recognized by all applications?

Thanks.

Note: I also have 2000 of these images that needs to undergo the same operation. Any batch suggestion would be great as well.

Edit: Sorry guys I apologize for my ineptness! WRONG FILE! I updated the link with the correct file, sorry!


Solution

  • It's transparent for me too.

    MS Paint doesn't support transparency

    As you mention PHP GD check this links

    Preserve PNG image transparency

    Resize and Compose Transparent PNG with PHP

    imagecolortransparent PHP Manual

    imagealphablending PHP Manual

    imagesavealpha PHP Manual