Complex SVG to PNG

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
nooneelse
Posts: 2
Joined: 2017-07-25T01:00:44-07:00
Authentication code: 1151

Complex SVG to PNG

Post by nooneelse »

Hi,

I've tried to use console to convert a complex SVG to PNG but I have failed...

My svg:
Image

My console codes:

Code: Select all

C:\Program Files\ImageMagick-7.0.6-Q16>magick.exe convert "C:\Test.svg" "C:\Test.png"

Code: Select all

C:\Program Files\ImageMagick-7.0.6-Q16>magick.exe convert -alpha off -depth 16 "C:\Test.svg" "C:\Test.png"

Code: Select all

C:\Program Files\ImageMagick-7.0.6-Q16>magick.exe convert -alpha on -depth 16 "C:\Test.svg" "C:\Test.png"
I get the same output all the time:
Image

It seems I'm having a problem with meridian circles and alpha... Any Ideas?

Best,
Cem
nooneelse
Posts: 2
Joined: 2017-07-25T01:00:44-07:00
Authentication code: 1151

Re: Complex SVG to PNG

Post by nooneelse »

When I re-order the meridian from back of SVG file to Front, Stars show up but Image is still incorrect:

Image

While circles of meridians are there, lines are not...
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Complex SVG to PNG

Post by Bonzo »

With V7 as you have done you use magick instead of convert but you do not need the convert as well as that could be using a V6 version. If you allowed the install to add the Imagemagick path to the environmental variables you do not need the path. It may not make a difference but try:

Code: Select all

magick "C:\Test.svg" "C:\Test.png"
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Complex SVG to PNG

Post by snibgo »

You have shown PNGs rasterized from the SVG, but not the SVG itself. So we can't test it, or comment. Perhaps your meridian circles were drawn filled with white.

Are you using inkscape as the delegate? Adding "-verbose" to the command before reading the SVG will tell you.
snibgo's IM pages: im.snibgo.com
Post Reply