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

Batch Cropping using Actions

New Here ,
Dec 04, 2024 Dec 04, 2024

Copy link to clipboard

Copied

I have a set of images that need to be cropped only in width and not height.

There are several images with different heights but I just need the width cropped. When I run the action it automatically makes all the images the same height as the first one. Can anyone help me with this, its a bit urgent.

TOPICS
Actions and scripting , macOS

Views

115

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
Adobe
Community Expert ,
Dec 04, 2024 Dec 04, 2024

Copy link to clipboard

Copied

Please post meaningful screenshots, including the fully expanded Action in the Actions Panel, the Batch settings etc. 

Edit: What is the target width, what are the current pixel dimensions of the images? 

 

And please post them with the »Insert Photos«-button. 

insertPhotos.png

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 ,
Dec 04, 2024 Dec 04, 2024

Copy link to clipboard

Copied

@shakieintheloop 

 

Those image attachments are invalid.

 

You can record changing the canvas size into an action, only changing the width. 

 

This could be a single step, centre anchor point, cropping the same amount from both left and right sides.

 

Or, if both sides require different values, this could be two steps: setting the anchor point on the left, adjusting the value so that the right-hand side is cropped, and repeating vice versa for the other side.

 

Another option is to setup a "crop file" where you load a selection and use that for batch cropping in the 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 Expert ,
Dec 04, 2024 Dec 04, 2024

Copy link to clipboard

Copied

We need more information to help you with specific instructions. Otherwise, try @Stephen_A_Marsh  suggestion to use Canvas Size.

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 ,
Dec 11, 2024 Dec 11, 2024

Copy link to clipboard

Copied

Record Action:
select all
transform selection to desired width OR height
crop
deselect all
image size (to desired final width OR height,  ...if required)
save
close

run action on other images using file>batch.

 

 

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 ,
Dec 11, 2024 Dec 11, 2024

Copy link to clipboard

Copied

LATEST
quote

image size (to desired final width OR height,  ...if required)


By @default6dy9119zq5ba

 

Just a note, actions record relative % even when the transform is set to px, so if you need to crop by px values, one can create a smart object layer and edit that using image size in px, which will record explicit px values, not %. Close and save the smart object. Then load a selection and crop from the smart object layer. Delete the smart object layer.

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