Copy link to clipboard
Copied
Hello,
TL;DR
I'm looking for a script that exports groups as individual PNGs (with the group name) into a folder with the document name. This is exactly what the "Quick Export as PNG" menu item is suppose to do, but cannot be properly batched.
I've been spinning my wheels on this all morning. Photoshop CC has a really useful feature under the Layers menu (or when Right-Clicking selected groups) called "Quick Export as PNG". It exports the groups as individual images into a folder adjacent to the current document - provided you have that export preference set (eg. file1 images get saved to file1-assets folder). However, it has two major flaws.
The Quora post "Is it possible to use "Quick Export as PNG" in a Photoshop action?" gives a very good rundown as well if you are looking for a different/better explanation.
And some information in this post as well: How do I quickly export a layer as a png file in Photoshop with extendscript
The Generate > Image Assets is actually an excellent solution for automating export, provided you can find quick/easy ways to name your layers and groups accordingly! (See below)
Heh, wow, Stephan, I can't for the life of me figure out why, but if I remove the comments at the top of your script it works fine... So, your solution effectively works!
The complete solution is as follows.
1. First, run this script (to append .png
...Copy link to clipboard
Copied
I was able to find a different method for exporting the files I needed - but if anyone figures out the conditions for executing "AdobeScriptAutomation Scripts" I'm very curious as to when that can and can be used inside a script. At this point it's more a matter of curiosity.
Copy link to clipboard
Copied
A couple more options here (works on all root/top-level layers and layer sets):
All top level layers saved to PNG.jsx
All top level layers exported to PNG.jsx
One can record the scripts into an action, then use the Automate > Batch command.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now