command line rotate export

Post questions on how to use or achieve an effect in Inkscape.
ryan1234
Posts: 5
Joined: Sat Nov 21, 2009 1:18 am

command line rotate export

Postby ryan1234 » Tue Nov 24, 2009 2:31 am

Hello,

Is it possible to rotate an exported image via the command line?

I have a saved SVG image and I would like to use the command line to export this image to several png files all at different rotational angles. For example, if I have an image of an arrow that points straight up, I'd like to use the command line (via a batch file) to export this image to png format in different files with the arrow pointing in the major/minor compass directions.

I've seen the example given in the man page that shows how to load, rotate and save an SVG image:
------------------
Duplicate the object with id="path1555", rotate the duplicate 90 degrees, save SVG , and quit:

inkscape filename.svg --select=path1555 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileClose
------------------

I'm wondering if there is any way to do this using the export function without having to modify the source (SVG) image first before exporting.

Thank you much,

Ryan

Return to “Help with using Inkscape”