I need to transform a square image in circle image with MiniMagick.
I know there is a way with ImageMagick
:
convert -size 300x300 xc:transparent -fill "image.png" -draw "circle 240,90 290,90" -crop 100x100+190+40 +repage circle1.png
I've tried to translate :
img.combine_options do |c|
c.draw "circle 240,90 290,90"
c.crop "100x100+190+40"
c.repage.+
end
I get this stuff, a black circle with my big nose as background image :
if anyone know how to translate this properly... please !!