Metadata-Version: 2.1
Name: img2svg
Version: 1.0.1
Summary: Convert an image to an SVG format with interactive elements
Home-page: https://github.com/suqingdong/img2svg
Author: suqingdong
Author-email: suqingdong1114@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
Requires-Dist: click
Requires-Dist: pillow
Requires-Dist: pysvg-py3

# Convert an image to an SVG format with interactive elements

### Installation
```bash
python3 -m pip install img2svg
```

### Usage
```bash
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
```


