Jump to content

PNG Transparency while retaining black


phpknight

Recommended Posts

I've been searching the posts and still cannot figure out how to do this.  Here is the issue:

 

1.) If I upload a PNG and resize it, any transparent background turns black.  Many people have spotted this.

2.) Is there a way to reatain transparency AND keep black as black if the image originally has it?

 

From seraching, it appears it has something to do with imageSaveAlpha and imageColorTransparent, but I still I am not if these would fix the issue.

 

 

Link to comment
https://forums.phpfreaks.com/topic/65801-png-transparency-while-retaining-black/
Share on other sites

Not sure if this is your problem, but if you're viewing the image in IE6, it doesn't support PNG transparency. See this site for a fix in JavaScript: http://homepage.ntlworld.com/bobosola.

 

Otherwise, make sure that the "save gamma" option is checked when you save your image.

It's IE 7. 

 

So, if somebody uploaded a transparent PNG and did not save the gamma, is it going to turn black anyway in IE even though it would not in Photoshop?  Please explain.

 

MadTechnie, that alphablending will work and retain the black native to the image as well?

 

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.