Photoshop: Is there a way to preserve layers and blend modes when merging or saving PNG?

  • 2
  • Question
  • Updated 7 years ago
  • (Edited)
This is a mandatory feature particularly for game developers - we need to be able to preserve blend modes when merging or saving. Game Engines typically expect a sprite sheet, that is, a large .PNG file with each frame of animation on it for a given character or special effect. This means that everything in Photoshop must eventually get flattened or merged, and as far as I can tell, Blend Modes become utterly useless at this point. Does Photoshop support this and I'm just unaware of where to look for it?
Photo of Victor Brahms

Victor Brahms

  • 1 Post
  • 0 Reply Likes
  • frustrated

Posted 7 years ago

  • 2
Photo of PECourtejoie

PECourtejoie, Champion

  • 792 Posts
  • 285 Reply Likes
The PNG format does not support blend modes, how do you want them to be maintained given that fact?
Normally, an image should maintain its look, is there some transparency, what kind of particular files give issues?
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14190 Posts
  • 1786 Reply Likes
What I've seen Flash and game developers do it export each layer as PNG w/transparency and set the blend mode from within their game/application.

To do this choose File > Scripts > Export Layers to Files...

In the dialog, choose:

1. 'PNG-24' as the File Type
2. Enable 'Transparency'
3. 'Trim Layers' to remove empty/transparent areas of the layers