|
|
| We don't bite newbies here... much | |
| PerlMonks |
SVG to many PNG problemby stabu (Scribe) |
| on May 01, 2009 at 12:59 UTC ( [id://761274]=perlquestion: print w/replies, xml ) | Need Help?? |
|
stabu has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
A little project I was doing is taking much longer than I thought, so I thought I would post here and see if anybody could point any way forward. I want to take an SVG file and produce it at various magnifcations in PNG form. I'm using Image::LibRSVG for this batch file writing procedure, which is probably not what it was built for. 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? Idea is to make the code faster. A bigger problem is that the output file is a different size each time. So I want to create a set canvas size and map the zoomed output to it. This can be done with GD, but again, Image::LibRSVG insists on saving to file each time. In fact it only has one saveAs method, and that's to write to file. Any ideas for me? Image::LibRSVG is starting feels more like a wrapper, may be I should be looking into cairo for this. Thanks for any ideas in advance. Cheers.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||