Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Export Groups to Files?

New Here ,
Sep 06, 2009 Sep 06, 2009

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?

TOPICS
Actions and scripting
120.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Sep 08, 2009 Sep 08, 2009

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 = 
...
Translate
Community Expert , Sep 09, 2009 Sep 09, 2009

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«.

Translate
Adobe
Explorer ,
Nov 26, 2018 Nov 26, 2018

I found in the 2019CC test that I couldn't export jpg, what's going on?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2018 Dec 04, 2018

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, …?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 05, 2023 Feb 05, 2023

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 01, 2011 Sep 01, 2011

Its not working on mac cs5

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 21, 2011 Dec 21, 2011

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 !

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2012 Feb 06, 2012

sounds great,but

is this script also available for Illustrator?

That would make our day and make you the person of the year!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2012 Feb 06, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2012 Feb 06, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 01, 2019 Feb 01, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2019 Feb 01, 2019
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 01, 2019 Feb 01, 2019

Actually you can do it by reading binaries, isolating only information about specific layer that you would write separately.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 03, 2019 Feb 03, 2019

how? can you please help me if you have time?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 03, 2019 Feb 03, 2019

Actually that would be revolutionary method I personally had to spent enormous piece of time to be able to provide.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 01, 2019 Feb 01, 2019

how to save each layers to image in multiple photoshop file in a folder using scripting without opening photoshop

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2019 Feb 01, 2019

Photoshop needs to be open to work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 01, 2019 Feb 01, 2019

then is there a way to save each layers of multiple photoshop file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2019 Feb 01, 2019

How good is your JavaScript knowledge?

Because this could be scripted but I can’t think of a default Script that performs the task.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 01, 2019 Feb 01, 2019

my skills in javascript is intermediate.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 04, 2019 Feb 04, 2019

oh ok. thanks by the way.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 22, 2022 Nov 22, 2022

As of 24.0.1, 

  1. Select whatever group(s) you want to export
  2. Right-click -> Export... (or Quick Export as PNG)
  3. Choose a location (and/or create a New Folder)
  4. Click Open
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2023 Sep 09, 2023

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2023 Sep 09, 2023

Whether this manual approach can be deemed efficient would depend on the number of Groups and Files one needs to process, I guess. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2023 Sep 09, 2023
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines