
On Thu, 25 Sep 2008 12:53:49 -0500 Gian Paolo Mureddu <thetargos@...155...> wrote:
Terry Brown escribió:
Can you explain a bit more what you're trying to do? Is the desired output .svg files, or .png/.gif/.jpg/whatever?
Cheers -Terry
I'm sorry, I should have been more specific.
I want to batch resize a large number of .svg files _into_ scaled up .svg files, without having to open each individual file, resize and save. Is it possible as command line arguments or through another program like one of ImageMagick?
I haven't tested it very hard but the attached bigger.xsl (XSLT) script seems to work. Invocation is something like:
xsltproc --stringparam scale 2.5 bigger.xsl in.svg >out.svg
or for all the .svg files in the current directory:
for i in *.svg; do xsltproc --stringparam scale 2.5 bigger.xsl $i
bigger_$i; done
(all on one line)
If you want to make things smaller use a scale value smaller than 1.0
If your system doesn't have xsltproc, then for Ubuntu at least run:
sudo apt-get install xsltproc
Hope that helps, Cheers -Terry