Convert an image to an SVG format with interactive elements
Installation
python3 -m pip install img2svg
Usage
img2svg --help
img2svg input.png
img2svg input.png -c conf.txt
img2svg input.png -c conf.txt -o output.svg --fill-color '#FF00FF' --fill-opacity 0.5
Config Format
separate with
<Tab>
x y rx ry title link
config.txt example:
0 0 140 720 Eudicots https://www.baidu.com/s?wd=Eudicots
141 0 510 720 Monocots https://www.baidu.com/s?wd=Monocots
511 0 720 720 Lycophytest https://www.baidu.com/s?wd=Lycophytest
721 0 890 720 Liverworts https://www.baidu.com/s?wd=Liverworts
891 0 1359 720 Mosses https://www.baidu.com/s?wd=Mosses
Metadata
Release files for img2svg 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| img2svg-1.0.2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| img2svg-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / img2svg-1.0.2.tar.gz
| Download URL | img2svg-1.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be682315627c56070367cf63a6ee2ceb01d62bc67fa518ae2287169a0be30f7b
|
|
BLAKE2b-256 checksum How to use checksums |
bef919ee0259e1720a52a666a5d4c26d26b48ad35734cbd0f50a023a9b82af7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|
Release files / img2svg-1.0.2-py3-none-any.whl
| Download URL | img2svg-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b974d0bfb61597d461c83d884b99c03bb670cf522c05fb7ea13c150dfa4e9200
|
|
BLAKE2b-256 checksum How to use checksums |
635620c52cc1c9089a113b55a1ee6da66b76499d46d9e43b5793964ba30c01b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|