Problem converting .mvg Image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Isnogud

Problem converting .mvg Image

Post by Isnogud »

Hi,

i have a problem converting .mvg Images with the command-line tool convert.exe (ImageMagick-6.3.5-Q16) on Windows-XP.

I can open the image with IMDisplay just fine but when i try to open with convert i get the error:

Code: Select all

Non-conforming drawing primitive definition 'graphic-context'
The convert only seems to work with very short .mvg files and produces errors with longer files.

I tired

Code: Select all

convert -size 624x369 xc:white  -draw @tempimg.mvg  mvg_draw.gif
and

Code: Select all

convert tempimg.mvg  mvg_draw.gif
both only seem to execute the first few lines and than stop.

i uploded one of the .mvg files i tried to http://www.cpieper.de/tempimg.mvg (it's an example from the "Introduction to Vector Graphics") i get this output after converting: http://www.cpieper.de/mvg_draw.gif
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem converting .mvg Image

Post by magick »

Strange indeed. We tried converting your MVG file and it worked as expected using ImageMagick 6.2.5-9, the latest release.
Isnogud

Re: Problem converting .mvg Image

Post by Isnogud »

Hi,

i tried on a different computer, and different release, i get the same problem.

i also tried MagickCMD:

Code: Select all

MagickCMD convert tempimg.mvg  mvg_draw.gif
and i get the same incomplete output. it would be nice if somebody else could try this on a windows machine so i can be certain it's mot my fault.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Problem converting .mvg Image

Post by el_supremo »

I tried it with IM 6.3.5 Q8 on Win XP and it works fine.

Pete
Isnogud

Re: Problem converting .mvg Image

Post by Isnogud »

Hi, i tried it again with a few more computers and it never worked.

Maybe you didn't understand me. I get an output image, but it is not complete. There is blue background with one line of text, but there should be a complete pie chart.

or is there any other way to convert .mvg files i could try?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Problem converting .mvg Image

Post by anthony »

Maybe if you present what the image should look like with the MVG and what it comes out as.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Isnogud

Re: Problem converting .mvg Image

Post by Isnogud »

Hi,

that's the .mvg file i used: http://www.cpieper.de/tempimg.mvg

this is what the output should look like (IMDisplay):

Image

this is the output i get with convert:

Image
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Problem converting .mvg Image

Post by anthony »

Okay I tried the mvg file and got the expected results. I am running the latest IM Which is version 6.3.6.

Perhaps you can try downloading the latest IM for windows.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply