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

How to crop batch multiple images?

Community Beginner ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

I have a bunch of images that I want to trim. How to crop/ trim batch multiple images?

 

Thank you!

Views

13.0K

Translate

Translate

Report

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 , Feb 10, 2021 Feb 10, 2021

Image > Trim, based off transparency, upper left or lower right pixel colour?

Votes

Translate

Translate
Adobe
Guide ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Do they all need exactly the same amount of crop and same positioning of crop?

 

If so, create a 'canvas size' action.  Then go to File > Automate > Batch.  Select your images and apply your Canvas Size action.

 

If each image needs a unique input, I can't think of a way to batch that.

Votes

Translate

Translate

Report

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 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Thank you, but what is 'canvas size' action?

Votes

Translate

Translate

Report

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 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

I just want to trim the 'blank page' around my images.

Votes

Translate

Translate

Report

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
Guide ,
Feb 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Photoshop has a facility to record a set of repetitive actions which you can run in the future.

 

Canvas Size is a means to change the canvas size (not to be confused with resampling the image).  So if you had a canvas of (say) 200px x 200px.  If you set canvas size to 180px x 180px, you would reduce the canvas size by 10px on each side. (crop).

 

What do you mean by 'blank page'?  Why have images got blank page?   

Votes

Translate

Translate

Report

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 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Image > Trim, based off transparency, upper left or lower right pixel colour?

Votes

Translate

Translate

Report

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 10, 2021 Feb 10, 2021

Copy link to clipboard

Copied

Thank you! It works! 

Votes

Translate

Translate

Report

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 ,
Aug 28, 2023 Aug 28, 2023

Copy link to clipboard

Copied

I created an action for trimming images with transparent backgrounds but when I run Batch for multiple files, Photoshop asks me every single time anyway whether I want the trimming to be based  on transparent pixels or whatever color in the corners. How can I skip on this dialogue and sort of set it to transparency by default so I can leave the computer and just let it run?

Votes

Translate

Translate

Report

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 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

@kaig11620057 - Action panel screenshot please, relevant steps expanded.

Votes

Translate

Translate

Report

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 ,
Aug 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

I mean the standard dialogue when you trim a picture:

Clipboard Image.jpg

Although I recorded an action having my preferred default options ticked, Photoshop asks me for every single picture in a batch process...and that is not the point obviously.

Do you know how to skip this dialogue?

Votes

Translate

Translate

Report

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 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

@kaig11620057 – I know what you want to achieve, but I don't know how you have recorded your batch action... This is why I asked for a screenshot of the action panel with the steps expanded and visible (not the command itself).

 

EDIT: here is an example of how to setup the action correctly. I have tested in a batch action and it works fine!

 

2023-08-30_09-50-44.png

 

This of course presumes that the image isn't flattened!

Votes

Translate

Translate

Report

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 ,
Aug 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

Ah sorry I misunderstood 🙂 Yeah the pictures are not flattened but may have multiple layers inside. The whole procedure is basically

* trim transparency

* Select all layers

* set transparency on all layers to 0%

* merge all layers to one

 

Here is my action:

Clipboard Image.jpg

 

Any ideas?

Votes

Translate

Translate

Report

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 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

@kaig11620057 – I setup an action the same as yours and ran it via batch, the trim step didn't pop up any dialog with non-flattened files.

 

I can't test this script as I can't reproduce your issue, but you could always try replacing the Trim step in your action with a script:

 

#target photoshop
var savedDisplayDialogs = app.displayDialogs;
app.displayDialogs = DialogModes.NO;
try {
    activeDocument.trim(TrimType.TRANSPARENT);
} catch (e) {}
app.displayDialogs = savedDisplayDialogs;

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html 

Votes

Translate

Translate

Report

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 ,
Aug 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

LATEST

Thank you, I will definitely give that a try!

Votes

Translate

Translate

Report

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