Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

imagemagick crop error option requires an argument -crop

i want to bulk crop image so i thought i use imagemagick but when i run this command on the command line:

convert src.jpg -gravity center -crop '290×310+50+50' src_c.jpg

this's error message:

convert: option requires an argument `-crop' @ error/convert.c/ConvertImageCommand/1087.

what's the problem here.

im on ubuntu 11.04 and i'm using imagemagick 6.6.2

any help.

Thanks in advance.

like image 405
Yahya KACEM Avatar asked Dec 02 '25 09:12

Yahya KACEM


1 Answers

From my experiments your x in 290×310+50+50 isn't actually an x (The letter X, rather than a multiplication symbol). Change it to an x (as in the letter) and it works for me

like image 78
cosmorogers Avatar answered Dec 05 '25 06:12

cosmorogers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!