Hey guys
I just found out inkcape only batch exports to the home directory. This isn't exactly ideal for webdeveloperes, who need
to export multiple little images, often in different directories.
Im wondering if inkscape's python api allows for batch exporting to different directories. Has anyone tried this?
Thanks
Python for batch exporting
-
- Posts: 26
- Joined: Wed May 27, 2009 7:32 am
Re: Python for batch exporting
Maybe I'm not understanding what you mean by "batch export", but when I use --export-png=myfile.png, it saves it in the current directory. Or I can specify a relative or fully-qualified path and it will save it there.
Using 0.46 under Debian "lenny".
Using 0.46 under Debian "lenny".
Re: Python for batch exporting
I was actually using the GUI, not the command line.
That being said, the command line does output to different directories - thanks for the tip.
However, I don't see any command line option to output each object as its own, separate png, using
its ID as the filename.
I'm on OSX 10.5.7
That being said, the command line does output to different directories - thanks for the tip.
However, I don't see any command line option to output each object as its own, separate png, using
its ID as the filename.
I'm on OSX 10.5.7
Re: Python for batch exporting
I was also trying to do this in Python, but couldn't find a single word on the internet about Inkscape Python API (not the one that gets svg on stdin and outputs a svg on the stdout)
Re: Python for batch exporting
doesn't yet exist beyond 'inkex.py', 'run_command.py', 'simplestyle.py', 'simpletransform.py' and other python extensions in share/extensions/. For a preview what's currently work in progress as part of the 'Googles Summer Of Code 2009' project follow this thread on the inkscape-devel mailing list.Quiark wrote:about Inkscape Python API (not the one that gets svg on stdin and outputs a svg on the stdout)
hth, ~suv