I've tried, but can't seem to get anywhere! mainly because of confusing naming differences between command line and the c# implementation.
Simply looking to take a jpg or png image, (a portrait/head shot), crop it to transparent circle, and export/save as png.
Code: Select all
convert thumbnail.gif -alpha set \
\( +clone -distort DePolar 0 \
-virtual-pixel HorizontalTile -background None -distort Polar 0 \) \
-compose Dst_In -composite -trim +repage circle_masked.png
Your time and expertise are much appreciated!