XML::LibRSVG - Interface to gnome's librsvg
use XML::LibRSVG; my $rsvg = XML::LibRSVG->new(); my $png = $rsvg->png_from_file($filename); my $larger_png = $rsvg->png_from_file_at_zoom($filename, 2); my $smaller_png = $rsvg->png_from_file_at_size($filename, 40, 40); $rsvg->write_png_from_file($svg, $output_file); $rsvg->write_png_from_file_at_zoom($svg, $of, 2); $rsvg->write_png_from_file_at_size($svg, $of, 40, 40);
At the moment all this module allows you to do is convert SVG's to PNG's in various ways. Enjoy :-)
Matt Sergeant, matt@sergeant.org
XML::LibXML
To install XML::LibRSVG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::LibRSVG
CPAN shell
perl -MCPAN -e shell install XML::LibRSVG
For more information on module installation, please visit the detailed CPAN module installation guide.