Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Image::LibRSVG 0.07

    Download button

    No screenshots available
    Downloads: 146  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tom Schindl | More programs
    Perl Artistic License / FREE
    March 11th, 2011, 06:47 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Image::LibRSVG description

    Perl extension for librsvg

    Image::LibRSVG is a Perl module that provides an Perl-Interface towards the gnome-lib librsvg-2 which is able to convert SVG(Scaleable Vector Graphics) into bitmapformats like (PNG,JPG,...). To which formats you can convert the svg-files depends on your gdk-pixbuf configuration. Still at least PNG and JPG should be available.

    SYNOPSIS

     use Image::LibRSVG;
     
     ## static Methods
     my $known_formats = Image::LibRSVG->getKnownFormats();
     my $formats = Image::LibRSVG->getSupportedFormats();
     my $isSupported = Image::LibRSVG->isFormatSupported("tiff");
     
     my $rsvg = new Image::LibRSVG();
     
     $rsvg->convert("my.svg", "my.png" );
     $rsvg->convertAtZoom("my.svg", "my.png", 1.5, 1.5 );
     $rsvg->convertAtMaxSize("my.svg", "my.png", 200, 300 );
     $rsvg->convertAtSize("my.svg", "my.png", 200, 300 );
     $rsvg->convertAtZoomWithMax("my.svg", "my.png", 1.5, 1.5, 200, 300 );
     
     $formats = $rsvg->getSupportedFormats();
     $isSupported = $rsvg->isFormatSupported("tiff");
     
     $rsvg->loadImage( "my.svg" );
     
     open( SVGFILE, "< my.svg" );
     local( $/ ) ;
     $rsvg->loadImageFromString( < SVGFILE > );
     close SVGFILE;
     
     $rsvg->saveAs( "my.png" );
     $rsvg->saveAs( "my.jpg", "jpeg" );
     
     $rsvg->loadImage( "my.svg", 0, { zoom => [ 1.5, 1.5 ] } );
     $rsvg->saveAs( "zoomed.png" );
     
     my $bitmap = $rsvg->getImageBitmap();



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    librsvg extension | Perl module | Perl | librsvg | extension

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM