[Solved] Can offset x but not y when converting image

tscheingeld Asks: Can offset x but not y when converting image
Here’s the overview of the problem. I want to crop an image to get a rectangle that is down a little and to the right a little. Somehow I can only set the x coordinate of the upper-left of the image. I can’t get it to set the y coordinate of that rectangle – the upper part is always at the top.

Here’s what the original image looks like. I can’t post the actual original image because it’s too large to upload. You can download the original image here.


Here’s the command I use to convert to a subset of that image:

/usr/bin/convert ./med.jpeg -crop 30%x12+300x50 ./ul.jpg

Which produces this image:


As you can see, it does a good job of offsetting the x axis, but it won’t offset the y axis. The rectangle always starts at the top of the original image, no matter value I set at the end of the crop geometry.

So what am I missing here?

Here’s the version of convert:

# convert -version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib

Any help is appreciated.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.