fails to correctly convert svg to jpg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Posts: 1
Joined: 2019-01-13T13:01:09-07:00
Authentication code: 1152

fails to correctly convert svg to jpg

Post by dnotman » 2019-01-13T13:22:27-07:00

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: (sorry don't have better version # with me)
18.04: ImageMagick 6.9.7-4 Q16 i686 20170114

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

Posts: 11095
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: fails to correctly convert svg to jpg

Post by snibgo » 2019-01-13T14:07:36-07:00

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.
snibgo's IM pages:

Post Reply