Skip to main content
Known Participant
August 8, 2025
Question

Crop edges of photo by 5%

  • August 8, 2025
  • 1 reply
  • 634 views

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.

1 reply

Stephen Marsh
Community Expert
Community Expert
August 8, 2025

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

Known Participant
August 8, 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.

Stephen Marsh
Community Expert
Community Expert
August 8, 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.