Circular cropping from BASH

The drawing should be ~ half of the original image

convert input.png \
        -gravity Center \
        \( -size 1024x1024 \
           xc:Black \
           -fill White \
           -draw 'circle 500 500 500 1' \
           -alpha Copy \
        \) -compose CopyOpacity -composite \
        -trim output.png
dcmst
dcmst
Yet Another Python developer

Python developer | Linux Enthusiast | Wine Geek

Related