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
dnotman
Posts: 2
Joined: 2019-01-13T13:01:09-07:00
Authentication code: 1152

fails to correctly convert svg to jpg

Post 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.
snibgo
Posts: 12159
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 »

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: im.snibgo.com
dnotman
Posts: 2
Joined: 2019-01-13T13:01:09-07:00
Authentication code: 1152

Re: fails to correctly convert svg to jpg

Post 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
snibgo
Posts: 12159
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 »

It works fine for me, with IM 6.9.9-50 and 7.0.7-28, both using Inkscape v0.91.
snibgo's IM pages: im.snibgo.com
Post Reply