From: Timothy Hunter Date: 2006-12-19T23:14:20+09:00 Subject: Re: RMagick and SVG Mihai Frisan wrote: > Hello, > > I try to edit a .svg file with RMagick, but the result of just > importing the file and then saving it as a .jpg is a black&white image > (the shapes are still there but the colors are not). > Here is the code > > require 'RMagick' > include Magick > > canvas = Image.read('d:\test.svg').first > canvas.write('d:\test.jpg') > > Any pointers will be greatly appreciated. > If you know any other way (another image library maybe) I can edit a > .svg file from ruby please let me know. > > Thanks, > Mihai > > ImageMagick's support for SVG is long overdue for an overhaul and you'll probably never get satisfactory results. If you want an authoritative response for this particular image, probably your best bet is to open a Support Request on the RMagick RubyForge project (http://rubyforge.org/tracker/?group_id=12). You'll be able to upload your .svg file as part of the request. Don't forget to specify which version of RMagick you're using.