Page 1 of 1

Complex SVG to PNG

Posted: 2017-07-25T01:05:07-07:00
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

Re: Complex SVG to PNG

Posted: 2017-07-25T01:34:33-07:00
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...

Re: Complex SVG to PNG

Posted: 2017-07-25T02:42:20-07:00
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"

Re: Complex SVG to PNG

Posted: 2017-07-25T04:08:12-07:00
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.