Skip to main content

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


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.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

img2svg-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file img2svg-1.0.1.tar.gz.

File metadata

  • Download URL: img2svg-1.0.1.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

Hashes for img2svg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 221aabdcb01ba8564ad9728905246c17ecf3b5a481cb3fb5abfa64a29223eada
MD5 8a9656536a2edbdba1f327ad7f0b3c1d
BLAKE2b-256 dffc493d838fa72a5f2e1391389ba8b1635ac7a748da9bec569698d0d2510c89

See more details on using hashes here.

File details

Details for the file img2svg-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: img2svg-1.0.1-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

Hashes for img2svg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49a1ea4e2210a7317fa34bb1825bae140ecdd6c02a6ec94689e7df7f923db009
MD5 3a72751531604c31c76e6d6b5266dd68
BLAKE2b-256 aa1cb5b8c9089098eafcfed09549104d092fe50a98e0d6d72ee6a36b61a85829

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page