Answer the question
In order to leave comments, you need to log in
How to get svg-border (polygon) from an image?
A picture is given (it consists of pixels of two colors, "background", and ordinary pixels).
We need to get the svg border (i.e. the coordinates for the polygon), so that the svg type
<svg width="500" height="420"><polygon points="координаты" fill="orange" stroke="black"></polygon></svg>
gave the same picture, but filled (it is necessary that the inside of the "image" in the picture is filled, and not what is outside of it) with the given color (in this example, let's say orange). Answer the question
In order to leave comments, you need to log in
You can call Inkscape via the command line to convert a bitmap to svg, there are examples on the Internet
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question