utdev utdev - 26 days ago 9
Bash Question

Imagemagick non-conforming line

I am trying to create a line using image magick.

Command so far:

convert -size 720x480 xc:transparent -strokewidth 3 -stroke lime -fill none -draw "line 203,100" C:\Test.png


but I get following error in the console:


convert.exe: non-conforming drawing primitive definition `line' @
error/draw.c/DrawImage/3169.

Answer

-draw option requires a start point and end point. you should use like -draw "line x1,y1 x2,y2" , you can use this;

convert -size 720x480 xc:transparent -strokewidth 3 -stroke lime -fill none -draw "line 203,100 303,100" C:\Test.png