Skip to main content
Participant
June 6, 2023
質問

PNG Color info gets discarted when the file has transparency

  • June 6, 2023
  • 返信数 1.
  • 314 ビュー

This is a bit stressing, I remember it used to work correctly but recently we have been trying to edit PNG files exported from Substance Painter. Substance exports them correctly, there is color information everywhere in the file plus the transparency layer, but once we edit the file in Photoshop everything that is not in the alpha white parts of the immage gets turned into white pixels, making editing png files impossible for us as it messes our textures pretty bad. 

 

Does someone knows how to fix this? 

このトピックへの返信は締め切られました。

返信数 1

Sameer K
Community Manager
Community Manager
June 8, 2023

Hey, @Bernardo21897934wpr3. Welcome to the Photoshop community. I'll help you through this.

 

What version of Photoshop & the operating system are you working on? How are you exporting or saving the PNG out of Photoshop?

What settings are you using for PNG export? Would you mind sharing a few before & after PNG files with us?

 

It's an if but if you're using Save for Web (legacy) which is a deprecated workflow, use Export As instead.

 

Let us know how it goes. Thanks!

Sameer K

Participant
June 9, 2023

Here is a quick sample, I just painted a color gradient on all the canvas. Created a layer mask, and saved the PNG. WHEN I reopen the PNG file again in photoshop, it turns out that everything ( color information) that was in the black part of the alpha layer gets turned into plain white.
If I do a Save As, instead of just Save, it doesnt discart 100% of the color information but it only keeps kind of a bounding box created based on the alpha white pixels. Discarting the rest of the color information. 

I am using the latest photoshop in MacOs Ventura, I save PNGs with the largest sized and not checking the interlaced option.  This doesnt happen with either Gimp or Affinity. 

Legend
June 9, 2023

If I understand correctly, it is removing information that is invisible - because it is in a fully transparent area. But you wanted to edit the transparency to expose this area. So the initial view is absolutely correct, but your plans to edit (the transparency) fail?