I have a list of images with fixed width but with variable height.






I would like to crop footer of the images by 380px from the bottom irrespective of the height of the image.

1440x2461 -> after crop -> 1440x2081

The real problem i am facing is that i can't every time specify what to keep after crop like this :

convert in.png -crop 1440x2081+0+0 out.png

So my question is : Is there a way to tell ImageMagick to keep unspecified area after crop and remove the specified area ?

convert in.png -crop -{command to invert selection} 1440x380+0+0 out.png

Or any other way to achieve the result?

1 Answer 1


Try setting - gravity South. IM Docs. It will tell to measure the offset from bottom.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.