migvel / color_trace

Traces multiple color images using potrace. This is similar to Inkscape's Trace Bitmap function.
GNU General Public License v2.0
98 stars 40 forks source link

Parallel processing support #3

Closed scribblemaniac closed 8 years ago

scribblemaniac commented 8 years ago

First off, thanks for this awesome script! It really helped me out :smile:

The main purpose of this PR is to take advantage of multi-core CPUs with python's multiprocessing library. This results in significant speed improvements for rendering multiple files or colors. The number of processes to be used can be specified with the -C or --cores arguments. Additionally I also fixed/improved the following things along the way: