I'm working in Photoshop CS5.

I have 800+ layers in a PSD file with transparency in them, and I want to export them all individually to JPG (or PNG if possible) - I have this straightened out, but I want the background to be black, not white (black, not transparent for PNG).

Individually, I would create a background layer that is black and export the file as a JPG/PNG with a single layer + the background layer visible.

I can't do that for the amount of layers in this project.

Any ideas?

2 Answers 2


Mark Edwards has a great scripted solution for this, posted to another question.

An automated, easy solution

  1. Use the FileScriptsExport Layers to Files script. This will export each layer of your document as a separate file with a filename that matches the layer name (so ensure your layer names are correct before running the script). Make sure you use a lossless 24bit format, like PNG (with 8bit alpha).

  2. Delete the exported file that's the background layer. I assume you won't be needing it :)

  3. Copy the background layer to the clipboard.

  4. Create an action that pastes and reorders the layers so the pasted layer is in the background.

  5. Run the action on all the files you exported.


Figured out a good solution

  1. Select layers
  2. In Animation flyout menu click "Make Frames From Layers"
  3. Select all animation frames
  4. Click black background layer
  5. File -> Export -> Render Video

Is there a faster way to save all layers in PSD to PNG?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.