On 11/15/06, Daniel Berger <djberg96 / gmail.com> wrote:
>
> Kouhei Sutou wrote:
> > Hi,
> >
> > In <455B2538.9080508 / gmail.com>
> >   "Converting SVG files to images" on Wed, 15 Nov 2006 23:33:34 +0900,
> >   Daniel Berger <djberg96 / gmail.com> wrote:
> >
> > > I was just playing with the Ruby svg-graph library, and it seems to work
> > > well.
> > >
> > > I was wondering what tools people use to convert svg files into images?
> > > Or is there a way to convert the generated file into an image using
> > > svg-graph itself?  Let's assume my users don't have a plugin to view svg
> > > files directly in a web browser.
> >
> >   http://ruby-gnome2.cvs.sourceforge.net/ruby-gnome2/ruby-gnome2/rsvg/sample/svg2.rb?revision=HEAD&view=markup
> >
> > You can generate many file types (PNG, JPEG, GIF and so on)
> > if you have Ruby/RSVG and Ruby/GdkPixbuf2.
> >
> > You can also generate PS, PDF, SVG and display your GTK+
> > widget if you also have rcairo.
>
> Thanks Kou, looks interesting.  I couldn't get cairo to build on my
> Solaris box, though - I think the configure script is borked.  But, as
> long as I can convert to png or jpg, all is well. :)
>
> Regards,
>
> Dan
>
>
>

I have a hunch that Kou's solution will work much better. In the
semi-recent past I tried using ImageMagick for SVG conversion and got
very poor results. I actually ended up using inkscape as a
rendering/conversion tool, which worked for my needs.

pth