Copy link to clipboard
Copied
Is there a way to export multiple GROUPS into individual files, such as jpg? If I run the File > Scripts > Export LAYERS To Files, each LAYER becomes a jpeg, but i'd like each GROUP to be flattened and exported as a jpg. Is there a script or funtion that performs this task?
You could try attached Script, You’d have to adapt it to jpg, currently it saves pdfs.
I have not tested it very extensively and only in CS4 though.
// creates pdf-copies of layersets with dialog to select layers and suffix;
// be advised: existing files of identical names will be overwritten without warnings;
// 2009, pfaffenbichler, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
////////////////////////////////////
// get document-path and -title;
var myDocument =
...
You could replace the pdfOptions with
var jpgopts = new JPEGSaveOptions();
jpgopts.embedColorProfile = true;
jpgopts.formatOptions = FormatOptions.STANDARDBASELINE;
jpgopts.matte = MatteType.NONE;
jpgopts.quality = 10;
and edit that according to Your needs.
Then replace »pdfOpts« and ».pdf« in the saveAs-line with »jpgopts« and ».jpg«.
Copy link to clipboard
Copied
I found in the 2019CC test that I couldn't export jpg, what's going on?
Copy link to clipboard
Copied
You may have to provide more information to enable anybody to provide pertinent advice.
Which exact Script did you use, what is the active file’s Layer structure, …?
Copy link to clipboard
Copied
Excuse me, is there a way to re-purpose this script to export only selected layers/groups as PNGs (with transparency support)?
And if so, could it be possible to do so including the effects that parent layers might be applying?
Example, if I have this structure:
P.Group (stroke fx)
â”” C.Group1
â”” C.Group2
â”” C.Group3
I wanna export C.Group1, 2 and 3, each one as an individual PNG, but keeping the stroke effect the P.Group is applying to them.
Is that even possible?
Copy link to clipboard
Copied
Its not working on mac cs5
Copy link to clipboard
Copied
After 30 mins on Google I found this thread and downloaded the script for Layer Saver
I knew what I wanted to do, but not how to do it.
I have 100s of files each with up to 100 layers that I need to export as separate trimmed psd files
This script does it. It has saved me so much hassle and so a HUGE 'thank you' is due to you
and of course,
Seasons Greetings !
Copy link to clipboard
Copied
sounds great,but
is this script also available for Illustrator?
That would make our day and make you the person of the year!
Copy link to clipboard
Copied
is this script also available for Illustrator?
Say what?
Photoshop and Illustrator’s Document Object Models are quite different, so a Script’s functionality is not necessarily (easily) transferable.
Anyway, you might want to check over at
http://forums.adobe.com/community/illustrator/illustrator_scripting
Copy link to clipboard
Copied
I know, but it would be awesome if such a great script also is available for Illustrator.
Will have a look at your link, thanks pfaffenbichler
if somebody has found it please post it here
keep up the good work y'all
Copy link to clipboard
Copied
hi guys, i just want to ask if you know how to save each layers to image in multiple photoshop file in a folder using scripting without opening photoshop. Please help me
Copy link to clipboard
Copied
how to save each layers to image in multiple photoshop file in a folder using scripting without opening photoshop
That would not seem to be possible as Photoshop cannot work if it’s not open.
Copy link to clipboard
Copied
Actually you can do it by reading binaries, isolating only information about specific layer that you would write separately.
Copy link to clipboard
Copied
how? can you please help me if you have time?
Copy link to clipboard
Copied
Actually that would be revolutionary method I personally had to spent enormous piece of time to be able to provide.
Copy link to clipboard
Copied
how to save each layers to image in multiple photoshop file in a folder using scripting without opening photoshop
Copy link to clipboard
Copied
Photoshop needs to be open to work.
Copy link to clipboard
Copied
then is there a way to save each layers of multiple photoshop file?
Copy link to clipboard
Copied
How good is your JavaScript knowledge?
Because this could be scripted but I can’t think of a default Script that performs the task.
Copy link to clipboard
Copied
my skills in javascript is intermediate.
Copy link to clipboard
Copied
oh ok. thanks by the way.
Copy link to clipboard
Copied
As of 24.0.1,
Copy link to clipboard
Copied
Command click or Shift left click to select the layer groups you need to export. Right click to the right of the layer group in the layer tab and click to export as...
Copy link to clipboard
Copied
Whether this manual approach can be deemed efficient would depend on the number of Groups and Files one needs to process, I guess.
Copy link to clipboard
Copied
Just updating this topic with the current repository of Paul's scripts;
https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Saver%20Plus.jsx
https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Saver.jsx