I'm trying to export all 155 raster layers, each 240*240 in pixels, to separate png files, but it takes ages to do that using CS5 File > Scripts > Export Layers to Files.

This script creates new psd files, copies all layers to them, then makes one layer visible before deleting all the layers he has just added. It took about three hours to export half of my layers.

If I was a script coder i'd make exporting this way:

for each layer do {
   make layer invisible }

for each layer do {
   make layer visible
   save file as "layer_name.png"
   make layer invisible }

Is there any faster way to export all layers to png?

  • your system seems having memory problem,slow performance, i did the same thing more than 200 images and it took only 10 minutes.. – Jack Jul 4 '11 at 11:24
  • @Jack is correct and I would consider adjusting your performance in Edit > Preferences > Performance there is a Memory Usage Bar. – DᴀʀᴛʜVᴀᴅᴇʀ Feb 22 '13 at 14:12
  • This is actually the logic that I used in my export layers script. – Hanna May 25 '13 at 22:09

In the animation panel flyout menu, choose "Make frames from layers."

File > Export > Render Video. Choose a folder for the export and select "Image Sequence" and "PNG".

| improve this answer | |
  • 7
    Is there anything you don't know? – Hanna Jul 4 '11 at 4:18
  • i guess it wont work.. – Jack Jul 4 '11 at 11:03
  • 1
    @Alan The difficulty in that task simply makes it all that more impressive. But I completely understand, I'm studying computer science, and that field as well is one where you cannot afford to fall behind. In addition to that, during the short time of you being here you've become the #1 user with nearly twice the reputation of the #2 user, that's impressive as well. Anyways, I just wanted to acknowledge that. – Hanna Jul 4 '11 at 22:02
  • 1
    This is a great method but when I tried it, transparent color becomes black for each image. Do you have any idea how to resolve this issue? – Tae-Sung Shin Jan 24 '12 at 7:17
  • 2
    At the bottom of the dialog, there is a dropdown to select the alpha channel setting. Change it from None to Unmatted. – Alan Gilbertson Jan 24 '12 at 12:46

You can try MacRabbit's Slicy App if you are working on OS X. It's really easy to use for slicing process for web development.

| improve this answer | |

MacGyver Solution:

Make a copy/backup from file Export Layers to Files.jsx, available on your Photoshop CS6 instalation folder (C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Presets\Scripts).

Edit the file (using notepad or whatever...) and comment/change line 940 (or use the find text tool):




Save file and use it on Photoshop. File > Scripts > Open File/Load script This worked great for me. Much faster.

| improve this answer | |

I dont think so that there is any easy and fast way of doing so ,as alan said try that animation ,render video thing,

i would suggest you to use scripts only because they are easy to work on instead of other methods.

if you need some sort of script see this:

  1. Saving your layers as separate documents example in site
  2. Export Layers to Files (Fast PNG version)

there are some similar question on this site already asked please take a look :

  1. Export photoshop layers to individual PNG files - batch process???
  2. Export Layers to Files exports only 4 png files from 100 layers
| improve this answer | |

Just in case anyone gets to this question through Google or wherever, I wanted to let you know that if the built in solution is too slow, I wrote my own script to export layers to either JPGs or PNGs that it much faster than the built-in script.

That answer can be found here.

The script can be found here.

But basically it does a minimal amount of work to export layers, rather than the long and complex process Photoshop takes, therefore being much faster.

| improve this answer | |

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