I often use the
Export > Layers to Files script. Obviously it's ancient (2007), and therefore has no support for the more recently introduced Artboards.
When using the
Layers to Files script, it outputs the layers using the dimensions of the entire canvas. On a file with multiple artboards, that means the image dimensions are completely wrong.
Is there an existing script that can handle exporting layers to files, when they are within an artboard?
Or is there any other way to achieve the following:
- Document has one or more artboards
- Each artboard has layers, named according to what the filename should be on export
- User can select the layers for export
- Export the layers, to the dimensions of the artboard they are within, ideally allowing for use of the artboard name and/or layer name and/or a prefix entered during the export process.
Typically I am exporting to JPG. Although if there's a solution out there that supports PNG or multiple formats, I'd love to see it.
I am fine with only performing this on layers from one artboard at a time. No issue there.
I am fine with a less than ideal naming process, although I like the fact the existing
Layers to files script allows for a prefix and will use the layer name in the filename.
(Ideally, it would also be possible to export Groups (their visible layers would get merged in the process) within Artboards, whilst also over-coming the same canvas size issue I am facing with exporting layers. I am still looking into existing solutions for Groups to files scripts, and will post a separate question if I can't find a solution.)
Thanks very much.