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

Batch images in multiple folders (Save for Web)

Community Beginner ,
Sep 26, 2019 Sep 26, 2019

I'm still looking to do this simple action: Create a script to process batch images, which are contained in multiple folders. I want them to be recorded in their respective folders, in web format, with a "Save for Web".
Apparently this is still not possible ? It's indispensable when you are working with a lot of images to integrate in a Website.

The only trick I know is to create a temporary folder and do your batch, folder by folder, and move the created images everytime to the right folder.

TOPICS
Actions and scripting
4.1K
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 1 Correct answer

Community Expert , Aug 20, 2021 Aug 20, 2021

Check on the Layer Saver script over here:

 

PS-Scripts

 

 

ls.png

Translate
Adobe
Community Expert ,
Sep 26, 2019 Sep 26, 2019

You could use the Image Processor Pro script which has a Save For Web setting.

ipp.png

Image Processor Pro / v3_2 betas

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 ,
Sep 26, 2019 Sep 26, 2019

Thank you, it's exactly what I'm searching for. It's a mix between all the functionalities I need. Adobe should include that in 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 Beginner ,
Sep 27, 2019 Sep 27, 2019

Well, this extension is not compatible with my latest Photoshop version unfortunatly...

I found a solution by using under Scripts > Image Processor, for now. It does everything I want apart from saving for Web.

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 ,
Aug 19, 2021 Aug 19, 2021

Hi, I am looking at doing something similar. I want to save for web each folder along with the bottom layer (BG) set automatically. Anybody knows how to do that or write a script for it?

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 ,
Aug 19, 2021 Aug 19, 2021

Are you wanting to save the folder as a file or the layers in the folder? You can use generate - name your folders/ layers with an extension - .png, .jpg, etc and turn on generate under the file menu. 

Generate image assets from layers

Melissa Piccone | Adobe Trainer | Online Courses Author | Fine Artist
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 ,
Aug 19, 2021 Aug 19, 2021

Each folder has different layers basically, some have EN language + EN CTA and EN T&Cs, others French, others Portuguese etc. The BG folder is applying to each language folder as it holds the Visual Identity.

What I want to do is export each folder along with the BG folder as a jpg.

So in the case of my screenshot I would have 13 jpg

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 ,
Aug 19, 2021 Aug 19, 2021

Perhaps this script will help:

 

photoshopCompositionComposer

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 ,
Aug 20, 2021 Aug 20, 2021

Thanks but it's not working

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 ,
Aug 20, 2021 Aug 20, 2021

 

@defaultovndcb2l9ulj 

 

Did you read the instructions? Take a look at the sample image layer structure. You'll have to slightly restructure your file to conform to the script requirements (or find or create a script that works with your layer structure)...

 

All of the separate "language" layer groups/sets will need to put into a single "parent" group. Select all of them and run the New Group from Layers... command.

 

The BG group can remain untouched.

 

You should then have 2 main "top-level" groups.

 

The script will then work as expected (I just tested).

 

EDIT: As the script saves to PNG/PSD, the script would need to be modified for JPEG or you can use Image Processor, Image Processor Pro or a Batch Action to batch save into JPEG files from the separate PNG/PSD files.

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 ,
Aug 20, 2021 Aug 20, 2021

It's going to be used over and over again on multiple psd files and we can't just adapt our templates to fit this script. I am looking for a script adapted to our situation.

Thanks though

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 ,
Aug 20, 2021 Aug 20, 2021
quote

It's going to be used over and over again on multiple psd files and we can't just adapt our templates to fit this script. I am looking for a script adapted to our situation.

Thanks though


By @defaultovndcb2l9ulj

 

OK, if I personally was in your position, I would automate via action or script the adaptation of your templates to suit the script, which is the easiest option.

 

atn.png

 

Otherwise, it will come down to custom scripting. Do you know how to script?

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 ,
Aug 20, 2021 Aug 20, 2021

I don't but if I have to I will get someone to do it for me. I was just wondering if there was an easier solution

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 ,
Aug 20, 2021 Aug 20, 2021

If you can find a script that comes close, somebody might be able to make minor modifications. Perhaps somebody will offer code from scratch, or you could commission this as a paid project. Good luck!

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 ,
Aug 20, 2021 Aug 20, 2021

Check on the Layer Saver script over here:

 

PS-Scripts

 

 

ls.png

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 ,
Aug 20, 2021 Aug 20, 2021
LATEST

@Jeff Arola – Good call, I had forgotten about this script from Paul!

 

For modern versions of Photoshop using the second darkest UI colour, you may wish to update the scriptUI colour.

 

Original code line 44:

 

var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);

 

Change 0.99 to 0.25 or 0.3:

 

var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.25, 0.25, 0.25, 1]);

 

 

 

One could also change line 103 from:

 

win.g5.rb4.value=true;

 

To:

 

win.g5.rb8.value=true;

 

To default the radio button selection to "Save all layerSets along with bottom layerset".

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