views:

222

answers:

5

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!

+2  A: 

It has a transparent background in Photoshop for me. I'm guessing that if it isn't transparent in some application, it is a problem with the application (not supporting transparency) than with the file.

David Johnstone
+1  A: 

GD requires one of various options (either directly or in the image type when you create a new image) in order to output transparent pixels.

Sparr
+2  A: 

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

jitter
Sorry, I linked the wrong image! Please look at the image again, sorry!
Charuru
A: 

Perhaps you could try saving them as 24-bit PNGs, instead of 32-bit. Maybe PHP GD would have better support for that.

Jacob
24-bit doesn't have alpha transparency
Charlie Somerville
+2  A: 
SpliFF
No, I really do mean PHP GD. I use Opera, FF, IE, Chrome, etc, all displays the transparency correctly. Photoshop does not. After resizing by PHP GD the background is a solid color.I think the issue is with the image.Thanks!
Charuru
fair enough, I didn't grep the part of your question where you said it worked in all your browsers.
SpliFF