Convert an image to an SVG format with interactive elements
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
img2svg-1.0.2.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file img2svg-1.0.2.tar.gz
.
File metadata
- Download URL: img2svg-1.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be682315627c56070367cf63a6ee2ceb01d62bc67fa518ae2287169a0be30f7b |
|
MD5 | 8365dcaa9b3bdb6d5df3de00d67a8f09 |
|
BLAKE2b-256 | bef919ee0259e1720a52a666a5d4c26d26b48ad35734cbd0f50a023a9b82af7f |
File details
Details for the file img2svg-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: img2svg-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b974d0bfb61597d461c83d884b99c03bb670cf522c05fb7ea13c150dfa4e9200 |
|
MD5 | 3f65dd9737a64d38f8a5c9bd8a2115fe |
|
BLAKE2b-256 | 635620c52cc1c9089a113b55a1ee6da66b76499d46d9e43b5793964ba30c01b3 |