Skip to main content
Participant
September 22, 2021
Question

Action to crop specific amounts from top and bottom of images

  • September 22, 2021
  • 1 reply
  • 4546 views
Hey all, I've trying to speed up my workflow. I regularly need to crop the header and footer off screens shots of various heights and I'd like to create an action to do this. For example: I have two images of web pages. The first is 1,000px tall and the second is 1,500px tall.. I want an action to crop the top 200px and bottom 300px from both images. The first image will end up being 500px tall, the second will be 1,000px tall. When I setup an action to crop the images, I can only seem to set the height of the images, so both images would end up being the same height. Is there a way to do this? Thanks all for your help!
This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
September 22, 2021

Record two different canvas size commands, moving the anchor point to the upper centre or lower centre as required. You will obviously need an action per screenshot size.

 

How many different size screenshots do you have? What is the input size and what is the top and bottom crop per screenshot? It is possible for a script to automate this based on the input size, automatically selecting the approprate crop.

 

EDIT: Here is a visual of the negative value relative px crop: