load .png without alpha?


#1

Does anyone know of a way to load a .png file WITHOUT the alpha clipping? In After Effects, I can change the interpretation between pre-multiplied, straight alpha, or none. I would like to be able to do this in PS as well.

I can convert the file to a different format like .tga to do what I need, but I’d really like to use .pngs if possible.


#2

Try swapping out your PNG importer/exporter with an older version of SuperPNG. Download link in this thread.


#3

Long overdue for this, and hate to resurrect an old thread, but thanks.

That plug did the trick and all is well in PS land again.

I had forgotten about this post until I came across the same problem again today. That’s when I realized I had already asked this.


#4

I know your question has already been answered, but what do you mean by clipping? The mask? and are you talking about saving it without a mask?

Cause all you have to do is flatten the image before saving and I believe it doesn’t save transparency.

Not sure what version, but there is also a web saving tool (not sure what it’s called) in photoshop that allows you to specify more in depth about the compression of the image.

But maybe I just have no clue what you’re talking about.


#5

His problem was that he saved out a PNG that had no transparency in the layer, but did have an alpha channel… but when he loaded it back into Photoshop, the alpha channel was gone and the layer had transparency. By default, Photoshop assumes that alpha information in a PNG is to be used as transparency information. The SuperPNG import/export module allows the alpha information to be retained in the alpha channel only.

Glad that worked, Pongo!


#6

Close, but not quite.

What I typically do is render something from a 3d program, for example an object on a floor plane. I set the floor plane to render in the scene, but to not be included in the alpha. This way I can extract the object easily without having to make multiple render passes.

If I save the image as a format such as .tga, everything works as it should,… Full RGB plus an alpha channel.

With the way Photoshop loads .png files though, it will automatically clip the RGB with the alpha channel. What’s even worse, is that it doesn’t pre-multiply the clip, so I still need to do that step anyways.

The super .png plugin linked to above allows me to load up a .png without the rgb being clipped. That way I have full control when I want to seperate things out.

Hope that made some sort of sense.

Thanks again for the solution. Hopefully it doesn’t break with a future version of PS.


#7

Ah, sorry to speak for you Pongo. Glad you found a solution to your problem.


#8

I’m just glad someone out there had an answer.

This particular one really got because a) It used to work correctly, and b) After effects, (another Adobe product) allows you to alter the type of interpretation. I would think that if they were going to change things, they should make things similar across the board.

I must be getting old, because I keep coming across things like this where a new version of software breaks things to such a degree that can’t work with it anymore. At the same time they never fix actual bugs that have been well known for years.

Anyways, I’m just ranting now. Thanks again for the help.


#9

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.