Celeb Glow
news | March 31, 2026

ImageMagick Crop image keeping original position

Having enter image description here

I would like to cut the lion but keep the original image size and lion in place.

right now i'm only able to cut the lion and keep the original image size, but not it's position:

convert /tmp/stratton.png -crop 550x800+320+30 -background none -extent 1200x1920 /tmp/output.png

enter image description here

How can i keep the lion in it's original position?

1 Answer

Solved by snibgo in ImageMagick official forums:

convert 1200px-Stratton_Oakmont_logo_svg.png -crop 550x800+320+30 -background Blue -layers Flatten x.png

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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