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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -