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.
fails to correctly convert svg to jpg
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: fails to correctly convert svg to jpg
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.
If that doesn't help, put the SVG on the web somewhere, and paste a link here.
snibgo's IM pages: im.snibgo.com
Re: fails to correctly convert svg to jpg
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
http://www.dnotmanj.com/Performances/to-convert.zip
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: fails to correctly convert svg to jpg
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