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

Crop edges of photo by 5%

Community Beginner ,
Aug 07, 2025 Aug 07, 2025

Hi all. As i am working on the bunch of images which where originally scanned and cropped into individual images using Script.(Thanks for the script from Jazz), i was struck with the next step where i tried using an action which is as follows.

1. Select all in the image(Landscape image)

2. Transform select. Shrink the selection by 5% ,that is 95 % of the image selected.

3. Activate crop tool. Enter it to execute the crop command.

4. The action did well with the same dimensions of the image .As soon as i apllied the action to a portrait image the dimension didn't change to  landscape format hence cropping the second half of the image.

Could there be a fix for this?

    Looking for an action or script that would activate the crop command with the selection of 95% of the image from centre , pfa and with the transform selection window showing off so that we can modify the selection and once click ok the crop applies and saves the image.

Thanks.

TOPICS
Actions and scripting , Windows
567
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
Adobe
Community Expert ,
Aug 08, 2025 Aug 08, 2025

Record an action using canvas size, either relative or absolute %. Run the action via batch.

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 08, 2025 Aug 08, 2025

That was a cool trick. But how will i know how much of its cropped. In some photos i may need to little more or little less. So some thing which would give us the preview before it crops could be better approach to it.

A manual touch to the area of interest.

Thanks.

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 08, 2025 Aug 08, 2025

@raagav_9457 

 

well, you didn't say that it was variable in your original post. :]

Select All.

 

(Optionally Select > Transform Selection)

 

Crop tool, set the first dropdown to Selection. Adjust the crop handles.


Apply the crop.

 

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 08, 2025 Aug 08, 2025

Hi Steph, as soon as i click selection in the drop down the option changes to ratio as shown in attachment. 

What should be the reason? PFA of the action i have saved for an image. But it doesn't do the required job for another image in landscape format. 

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 08, 2025 Aug 08, 2025

Try disabling the interactive/modal crop step from the action and select the crop tool manually after the action creates the selection and modifies it 5%.

 

Another option is scripting. As an example, this script was for square cropping, however, it could be modified to use the canvas size as a start point:

 

 
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 08, 2025 Aug 08, 2025
LATEST

No that's not working for me. 

I didn't expected this to be such complicated:(

 

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