img2svg


Nameimg2svg JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/suqingdong/img2svg
SummaryConvert an image to an SVG format with interactive elements
upload_time2024-10-22 02:46:57
maintainerNone
docs_urlNone
authorsuqingdong
requires_pythonNone
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/suqingdong/img2svg",
    "name": "img2svg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "suqingdong",
    "author_email": "suqingdong1114@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/be/f9/19ee0259e1720a52a666a5d4c26d26b48ad35734cbd0f50a023a9b82af7f/img2svg-1.0.2.tar.gz",
    "platform": null,
    "description": "# Convert an image to an SVG format with interactive elements\n\n### Installation\n```bash\npython3 -m pip install img2svg\n```\n\n### Usage\n```bash\nimg2svg --help\n\nimg2svg input.png\n\nimg2svg input.png -c conf.txt\n\nimg2svg input.png -c conf.txt -o output.svg --fill-color '#FF00FF' --fill-opacity 0.5\n```\n\n### Config Format\n> separate with `<Tab>`\n```\nx   y   rx  ry  title   link\n```\n`config.txt` example:\n```\n0   0   140 720 Eudicots    https://www.baidu.com/s?wd=Eudicots\n141 0   510 720 Monocots    https://www.baidu.com/s?wd=Monocots\n511 0   720 720 Lycophytest https://www.baidu.com/s?wd=Lycophytest\n721 0   890 720 Liverworts  https://www.baidu.com/s?wd=Liverworts\n891 0   1359    720   Mosses   https://www.baidu.com/s?wd=Mosses\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Convert an image to an SVG format with interactive elements",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/suqingdong/img2svg"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "635620c52cc1c9089a113b55a1ee6da66b76499d46d9e43b5793964ba30c01b3",
                "md5": "3f65dd9737a64d38f8a5c9bd8a2115fe",
                "sha256": "b974d0bfb61597d461c83d884b99c03bb670cf522c05fb7ea13c150dfa4e9200"
            },
            "downloads": -1,
            "filename": "img2svg-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3f65dd9737a64d38f8a5c9bd8a2115fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5302,
            "upload_time": "2024-10-22T02:46:55",
            "upload_time_iso_8601": "2024-10-22T02:46:55.398785Z",
            "url": "https://files.pythonhosted.org/packages/63/56/20c52cc1c9089a113b55a1ee6da66b76499d46d9e43b5793964ba30c01b3/img2svg-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bef919ee0259e1720a52a666a5d4c26d26b48ad35734cbd0f50a023a9b82af7f",
                "md5": "8365dcaa9b3bdb6d5df3de00d67a8f09",
                "sha256": "be682315627c56070367cf63a6ee2ceb01d62bc67fa518ae2287169a0be30f7b"
            },
            "downloads": -1,
            "filename": "img2svg-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8365dcaa9b3bdb6d5df3de00d67a8f09",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4499,
            "upload_time": "2024-10-22T02:46:57",
            "upload_time_iso_8601": "2024-10-22T02:46:57.044813Z",
            "url": "https://files.pythonhosted.org/packages/be/f9/19ee0259e1720a52a666a5d4c26d26b48ad35734cbd0f50a023a9b82af7f/img2svg-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-22 02:46:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "suqingdong",
    "github_project": "img2svg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "img2svg"
}
        
Elapsed time: 0.43137s