Automating Inkscape
Hello:
I've been working on a number of things in Inkscape, a lot of which deal with tracing of many frames of 2D animation. Since I generally apply the same settings to a multitude of files, I was wondering if there is a way to do command-line access of "Trace Bitmap" command that could still utilize my settings...
I only ask because most characters are extremely low-res to begin with and require being cut into a number of parts to create a good final composite. If there was a way to convert large amounts of bitmap data to SVG based on a specific setting I've set, and perhaps a way to cleverly automate coloring of the parts as well (if I can trace, I can figure out the rest), I could save a monumental amount of time.
Any information is greatly appreciated.
-ilya.
On Wed, Nov 15, 2006 at 10:44:44AM -0600, ilya y. rostovtsev wrote:
Hello:
I've been working on a number of things in Inkscape, a lot of which deal with tracing of many frames of 2D animation. Since I generally apply the same settings to a multitude of files, I was wondering if there is a way to do command-line access of "Trace Bitmap" command that could still utilize my settings...
I only ask because most characters are extremely low-res to begin with and require being cut into a number of parts to create a good final composite. If there was a way to convert large amounts of bitmap data to SVG based on a specific setting I've set, and perhaps a way to cleverly automate coloring of the parts as well (if I can trace, I can figure out the rest), I could save a monumental amount of time.
Any information is greatly appreciated.
Trace Bitmap is actually a wrapper around another tool called potrace, which can be used from the commandline. While Inkscape adds some useful capabilities in its wrapper, you might be able to achieve what you need directly. More info on potrace:
http://potrace.sourceforge.net/
Bryce
On 11/15/06, ilya y. rostovtsev <ilyaforpresident@...155...> wrote:
Hello:
I've been working on a number of things in Inkscape, a lot of which deal with tracing of many frames of 2D animation. Since I generally apply the same settings to a multitude of files, I was wondering if there is a way to do command-line access of "Trace Bitmap" command that could still utilize my settings...
Inkscape can't yet trace from command line, but its tracer uses potrace, which is a command line tracer with all the same parameters (except that, I think, it cannot do multiscan which was added in Inkscape on top of it). See http://potrace.sourceforge.net/.
participants (3)
-
Bryce Harrington
-
bulia byak
-
ilya y. rostovtsev