command line - Crop down to circle -


i crop rectangular image down circle. ran command:

convert -crop 500x500+100+100 in.jpg out.jpg 

however creates square rather circle.

convert in.jpg -extent 400x400+100+100 \   '(' +clone -alpha transparent -draw 'circle 200,200 200,0' ')' \   -compose copyopacity -composite out.png 

this +100+100 part optional: allows shift viewport.

how make circle thumbnail graphicsmagick?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -