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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -