It seems that SVG export is currently broken when applying the "-m 8" switch for polygon mode. PNGs render just fine, but when switching to SVG, the resulting XML is almost empty, aka no polygons are declared:
Tested with "kodim19" test image (http://optipng.sourceforge.net/pngtech/corpus/kodak/kodim19.png) using the following switches: "primitive -i kodim19.png -o kodim19_primitive.svg -n 10 -m 8". My environment is WSL, Linux Subsystem for Windows, Ubuntu 16.04 based, Fish shell, Golang v. 1.7.4 installed via LinuxBrew)
Original Test Image:
PNG output for -m 8 polygons:
As you can see, other simple SVG shapes export just fine. Here's an example with -m 0 (Mixed mode): "primitive -i kodim19.png -o kodim19_primitive.svg -n 10 -m 0". Notice how the lines in which polygons should have been declared stay empty:
It seems that SVG export is currently broken when applying the "-m 8" switch for polygon mode. PNGs render just fine, but when switching to SVG, the resulting XML is almost empty, aka no polygons are declared:
Tested with "kodim19" test image (http://optipng.sourceforge.net/pngtech/corpus/kodak/kodim19.png) using the following switches: "primitive -i kodim19.png -o kodim19_primitive.svg -n 10 -m 8". My environment is WSL, Linux Subsystem for Windows, Ubuntu 16.04 based, Fish shell, Golang v. 1.7.4 installed via LinuxBrew)
Original Test Image:
PNG output for -m 8 polygons:
As you can see, other simple SVG shapes export just fine. Here's an example with -m 0 (Mixed mode): "primitive -i kodim19.png -o kodim19_primitive.svg -n 10 -m 0". Notice how the lines in which polygons should have been declared stay empty: