stabu has asked for the wisdom of the Perl Monks concerning the following question:
What I would like is to not have the loop reading from file each time .. so I was thinking about referencing it as a filehandle and then dereferencing. A go or no-go area?#!/usr/bin/perl -w use strict; use Image::LibRSVG; my $rsvg = new Image::LibRSVG(); my $infile=$ARGV[0]; for (my $i=1;$i<=10;$i++) { my $fs=sprintf("%05d.png",$i); $rsvg->convertAtZoom($infile,$fs,$i/10,$i/10); # be careful 1, is +normal zoom, not 100!!! undef $fs; } undef $rsvg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SVG to many PNG problem
by zentara (Cardinal) on May 01, 2009 at 16:17 UTC | |
by stabu (Scribe) on May 01, 2009 at 23:16 UTC | |
|
Re: SVG to many PNG problem
by JavaFan (Canon) on May 01, 2009 at 13:11 UTC | |
by stabu (Scribe) on May 01, 2009 at 15:47 UTC | |
by JavaFan (Canon) on May 01, 2009 at 21:07 UTC |