Jump to content

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?

 

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.