--
I'm trying to reproduce the third example in this section under Reading MVG Files:
https://www.imagemagick.org/Usage/draw/#reading
The example shows this .mvg file contents:
Code: Select all
viewbox 0 0 100 60
fill khaki rectangle 0,0 100 60
fill green circle 41,39 44,57
fill blue circle 59,39 56,57
fill red circle 50,21 50,3
Code: Select all
convert mvg_circles2.mvg mvg_image.gif
Code: Select all
$ convert mvg_circles2.mvg mvg_image.gif
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/512.
convert: no images defined `mvg_image.gif' @ error/convert.c/ConvertImageCommand/3275.
This is in a bash shell in macOS. I've tried prepending '@' in front of the .mvg file name, or not, and with and without various means of quoting and/or escaping. No go. I also tried changing .gif to .jpg in my command, because that is what I need ultimately.
The problem is above. Below, no problems.
This does work:
script file:
Code: Select all
#!/bin/bash
convert -size 96x96 xc:white \
-fill none -stroke black -strokewidth 1 \
-draw @draw.mvg \
test.jpg
Code: Select all
fill none rectangle 3,0 5 2
fill none line 9,0 11,2
fill none line 15,2 17,0
fill none line 21,1 23,1
fill none line 28,0 28,2
fill none polygon 33,0 33,2 35,2
fill none line 0,10 95,10
fill none line 0,12 95,12
fill none line 0,14 95,14
fill none line 0,16 95,16
fill none line 0,18 95,18
fill none line 0,20 95,20
fill none line 0,22 95,22
fill none line 0,24 95,24
fill none line 0,26 95,26
fill none rectangle 80,82 82 84