2016-11-08 5 views
-1

사람들, 나는 imagemagick을 사용하여 이미지에서 원을 잘라냅니다.imagemagick에서 이미지 동그라미 자르기

convert input.jpg +clone -threshold -1 -negate -fill white -draw "circle 539,539 539,0" -alpha off -compose copy_opacity -composite output_circ.jpg 

내가 this 같은 출력을 얻고있다 :

내가 뭔가를 놓친 거지 있으면 알려 주시기 바랍니다 내가이 명령을 실행할 때 나는 아무것도를 받고 없습니다입니다.

답변

1

기본적으로 JPEG 파일은 투명도를 저장할 수 없으므로 PNG 또는 GIF를 사용해야합니다.

convert input.jpg -alpha on \(+clone -threshold -1 -negate -fill white -draw "circle 539,539 539,0" \) -compose copy_opacity -composite output_circ.png