This is a variation on a number of previous questions, but I seem to have a unique situation.
- I have a photoshop file.
- It has many layer groups, each forming a distinct and complete image to be exported
- These images have been exported once already
- The resultant image names are the same as the layer group names
So, I now have a folder with images correctly. For example:
One group layer might hypothetically be:
- 2015-12-02-on-a-boat
This has been exported for web as:
- 2015-12-02-on-a-boat.png
There are hundreds of layer groups, and this seems the most appropriate method of dealing with these similar but unique images.
As part of the move to responsive design, this process needs to now create resized images. For example the layer group:
- 2015-12-02-on-a-boat
.. now needs to export in 4 separate sizes to
- 2015-12-02-on-a-boat.png
- 2015-12-02-on-a-boat-500.png
- 2015-12-02-on-a-boat-1000.png
- 2015-12-02-on-a-boat-1300.png
My question:
Is it possible to automate this process? Using a step through quasi programming process:
foreach (layer groups) {
1. Enable visibility on a layer group
2. Export for web, using the layer group name
3. Export for web again, but also resize to 500px wide, appending "-500"
4. Export for web again, but also resize to 1000px wide, appending "-1000"
5. Export for web again, but also resize to 1300px wide, appending "-1300"
6. Remove visibility on layer group
}
Even if I couldn't foreach
, items 1-6 would save me a huge amount of time.
Having played around with photoshop actions I don't know how to access items such as layer name, which is the point of the whole exercise.
I'm actually a developer, so I'm not afraid of getting my hands dirty in some macros or code.. but I don't see how to do that. I don't even see how to get to the code itself.. if that's even accessible!