Authors: MareroQ
Source code Potrace: Peter Selinger
Source code Live Preview: Tin Tran
Live Preview (gtk2) according to the idea of Tin Tran http://gimpchat.com/viewtopic.php?f=9&t=9586#p284974
Older version (updated to Ver. 0.7): Plugin-potrace.py https://www.gimpscripts.net/2020/09/plugin-potracepy-ver-05.html
Potrace(TM) as a bitmap tracing tool, which means transforming a bitmap into a smooth, scalable image. The input is a bitmap (BMP format) and the output is an SVG file.
The resulting image is not "jagged" like a bitmap, but smooth. It can then be rendered at any resolution.
Mkbitmap is a program distributed with Potrace that can be used to preprocess input data for better tracking of grayscale and color images.
Name SVG file:
If you do not change the name, the file will be overwritten.
For name do not use spaces & special characters.
Turdsize:
Suppress speckles of up to this many pixels.
Alphamax:
Set the corner threshold parameter. The default value is 1. The smaller this value, the more sharp corners will be produced.
If this parameter is 0, then no smoothing will be performed and the output is a polygon.
If this parameter is greater than 4/3, then all corners are suppressed and the output is completely smooth.
Opttolerance:
Set the curve optimization tolerance. The default value is 0.2. Larger values allow more consecutive Bezier curve segments to be joined together in a single segment, at the expense of accuracy.
Stroke Path Width:
- when width = 0 then the paths is visible
- when width > 0 the paths are invisible and the path is stroke on a new transparent layer.
Changes:
added select color FG svg visible only when you open a newly created svg file (previously only default = black). The fill color remained transparent by default.
added option - Open SVG file as new image:"None","Many, Individual","One, Merged","Interactive".
- replace transparency (if alpha channel exists) to BG color (on added copy).
You can submit comments here:
http://gimpchat.com/viewtopic.php?f=9&t=20781&start=0