Page 1 of 1

fails to correctly convert svg to jpg

Posted: 2019-01-13T13:22:27-07:00
by dnotman
The *.svg is a music score generated by abcm2ps. Regrettably this program cannot generate a *.jpg image directly, so I have relied on convert to create the *.jpg. The *.svgs all display fine with ristretto & gimp.
convert tune.svg -transparent-color '#FFFFFF' -quality 92 -density 90x90 tune.jpg
With xubuntu 16.04 (32 bit) this worked great. With xubuntu 18.04 (32 bit), text in the *.svg comes through, but the notes and staff lines do not.
16.04: Depends: imagemagick-6.q16 (= 8:6.8.9.9-7ubuntu5.9) (sorry don't have better version # with me)
18.04: ImageMagick 6.9.7-4 Q16 i686 20170114 http://www.imagemagick.org

I'll be happy to send you a before-and-after sample, but I don't see any attachment facility.

Re: fails to correctly convert svg to jpg

Posted: 2019-01-13T14:07:36-07:00
by snibgo
Does the SVG show correctly with Inkscape? If it does, then ensure Inkscape is on your system path, and IM will use Inkscape.

If that doesn't help, put the SVG on the web somewhere, and paste a link here.

Re: fails to correctly convert svg to jpg

Posted: 2019-03-13T09:55:46-07:00
by dnotman
I'v posted a sample with both the good and bad output *.jpg files, as well as version info to
http://www.dnotmanj.com/Performances/to-convert.zip

Re: fails to correctly convert svg to jpg

Posted: 2019-03-13T10:48:05-07:00
by snibgo
It works fine for me, with IM 6.9.9-50 and 7.0.7-28, both using Inkscape v0.91.