Skip to main content
Participating Frequently
October 29, 2022
Question

Layers to files batch jpeg just overwrites everything

  • October 29, 2022
  • 1 reply
  • 368 views

Hi everyone, I'm having some issues using automate batch with layers to files.

Works fine if I just work on one file at a time without batch processing, but as soon as I try to automate all 4000 files, each file has 8 layers(images) it just overwrites them leaving me with one layer(which is the last one) per image. Am I doing it wrong? Or is there a limitation I'm not seeing.

 

Best regards

 

David

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
October 29, 2022

File > Automate > Batch is for Actions, no GUI or interaction is expected for most tasks.

 

File > Export > Layers to Files is a script, with a GUI, it is intended for manual use with a single file.

 

They were never intended to be used together.

 

A custom script for saving layers into JPEG files (no GUI) could be recorded into an Action and then used via Batch.

 

P.S if I misunderstood how you are saving layers and this is being done by the Batch Action, then you may need to tick the "override action save as command" check box in Batch if the action has recorded filenames.

Participating Frequently
October 29, 2022

Thank you for replying,

My actions make the layers, I use a simple script(allign) to orientate the image, then use another script(frame8mm) to select part of the image I need as layer 1. Then I repeat 7 more times using the frame8mm script until I have my 8 layers. This works like a charm. I've tried adobe's layers to files with batch, and another script called "Export Layers To Files(Fast)" which has a Batch_Operation = true or false which also still overwrites my files. I have been using the override action save as command. Not sure what you mean by recorded file names.

 

David

Stephen Marsh
Community Expert
Community Expert
October 30, 2022

It's hard to know what is going on without the specifics... You could try a different script. The following saves PNG, don't worry about that for now, it is easy enough to swap out the code for JPG if it works for you.

 

 
The script uses the filename + the layer name, but it has no error checking for duplicate names, so every layer has to be named differently or it too will overwrite previous files with the same name.