The scenario
I often have Photoshop files with the following general Layers configuration (each item is a Layer Group):
- Output 1
- Output 2
- Output 3
- Background Group
This example would produce three different images. Each will include the Background Group
combined with one of the Output n
groups.
My current workflow
My current workflow requires me to export (Save for web...) each of these output images, in a range of sizes (based on image width). They are:
- 150px
- 400px
- 600px
- 800px
- 1200px
All are exported as .jpg
files with a quality setting of 60
.
Those dimensions could vary in other situations, but for the current file those are the output sizes.
The image I am currently working with is square, but there are situations where it may be rectangular.
Currently, each time I make changes to the Background Group
I have to manually export 5 x 3 images. That's 15 operations. It's taking me a lot of time, so I figure there must be a way to automate it.
My Question
I would like to know how to best go about automating this.
I have found other related solutions, both here and on other blogs posts and Adobe forums. But they either focus on exporting each layer (one layer = one image), or exporting an entire PSD file to multiple output sizes.
What I found that was similar to my requirements
This script on Github exports every individual layer to an image, but not layer groups, and it doesn't allow for a batch of different output sizes).
I also found the xtools scripts, which look very useful, but it doesn't allow for exports based on layer groups. Otherwise, it looks like a very hand tool.
My specific requirements are:
- One-by-one combine each group with the
Background Group
. - Generate multiple files sizes
- Name those files accordingly (
layer-name-[width].jpg
) Ideally the solution would allow me to customise it for different output sizes. So that it's not locked in to only export the sizes mentioned above.
At the very least, it would be great to be able to simply export a batch of files sizes, to set format (JPG or PNG), at a set quality, using a merge of all visible layers. That would at least cut this example task down to three actions (one per
Output n
layer).
Photoshop Image Processor Pro does at least allow a way to partly achieve #5. I can export the necessary image dimensions (one layer group at a time). Although, I see no way to include the image dimensions (width and/or height) in the file naming, nor the layer name. Which means there will be an added step of manually renaming each file according to its size, and corresponding Output n
layer name. It does still require me to do each layer group combination one-by-one.
Can anyone suggest how to go about this?
Thank you.