I am using imagemagick on 64bit ubuntu OS
$ convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
I am trying to write a number inside a circle.
I have tried following
My problem is that 12 is written in black .$convert -size 388x374 xc:white sth.png
$convert sth.png -fill none -strokewidth 2 -stroke red -draw 'circle 108,283 108,293' sth-with-circle.png
$ convert sth-with-circle.png -fill none -strokewidth 2 -stroke black -draw 'rectangle 98,273 118,293' sth-with-circle-and-rect.png
$ convert sth-with-circle-and-rect.png \( -size 20x20 -background none label:"12" -trim -gravity center -extent 20x20 \) -gravity northwest -geometry +98+273 -composite sth-with-circle-rectangle-number.png
I tried -fill green , -stroke green next to label option .
Thanks.