0

I am learning ImageMagick. This error occurs when I run a code copied from https://www.imagemagick.org/Usage/draw

convert: non-conforming drawing primitive definition `n25'

#Bezier_Primitive

 dengjiangzhou@dengjiangzhou  ~/Downloads/z  points="10,10 30,90   25,10 50,50   50,50 80,50   70,10 90,40"
  clines=`echo "$points" | sed 's/   /\n/g' |\
             while read line; do echo "line $line"; done`
  symbols=`echo path "'"; for point in $points; do
             echo "M $point   l -2,-2 +4,+4 -2,-2   l -2,+2 +4,-4 -2,+2"
           done;  echo "'"`
  convert -size 100x100 xc:skyblue -fill none \
          -draw "stroke gray $clines    stroke blue $symbols " \
          -draw "stroke red  bezier 10,10 30,90   25,10 50,50 " \
          -draw "stroke red  bezier 50,50 80,50   70,10 90,40 " \
          draw_bezier_disjoint.gif
convert: non-conforming drawing primitive definition `n25' @ error/draw.c/DrawImage/3282.

The website code I've copied: enter image description here

My code:
enter image description here

What am I missing?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.