CLI tool for vectorizing raster graphics, written on the basis of the potrace algorithm.
Project description
Vectorvision
Overview
Vectorvision is a tool for vectorizing raster graphics, written on the basis of the potrace (https://potrace.sourceforge.net/) program. A detailed description of the algorithm can be found in the publication about potrace (https://potrace.sourceforge.net/potrace.pdf). For now, available color formats are binary and grayscale, RGB images are firstly converted to grayscale and vectorized. You can convert images of any common format including: png, jpg, jpeg. The output format is SVG.
Features
The program allows you to transfer images from raster formats, e.g. PNG, to the SVG vector format. The program is available from the command line. Features:
- Support for utility formats: PNG, JPG, JPEG, BMP.
- Output format: SVG.
- Optimization of the SVG output file for functionality.
- Starting the program from the command line.
Tech Stack
The language of this project is Python. These are main libraries that we use:
- Sphinx
- PIL
- numpy
- shapely
- pytest
Docs
See the documentation for detailed information: https://vectorvision.readthedocs.io/en/latest/?badge=latest
Installation:
To install this tool run:
pip install vectorvision
Usage:
This is the command view that you can use to run the tool:
vectorvision -i <input_path>
The output image will have the same name as input and will be saved in the same directory.
Authors
License
Please check the MIT license that is listed in this repository.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vectorvision-0.1.1.tar.gz.
File metadata
- Download URL: vectorvision-0.1.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85dad6331497b1a29346da599ffc4e05dcb68645171696a92c303fc9908b7cfb
|
|
| MD5 |
7120d835f375418517446a699fc4ba7f
|
|
| BLAKE2b-256 |
21b92420172da64f95feeeb9161f560809bba6d393a43641636649d94bfe2cbe
|
File details
Details for the file vectorvision-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vectorvision-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e1b169deed9eec8c4478c915036c601e99bfe6cacd7a28407ec2bd8289651f9
|
|
| MD5 |
76e966865e2c86d8227993a20e759b25
|
|
| BLAKE2b-256 |
be40b39c6dfbb3f47d9d717dcdfcf277aadb7f8e505d91c93b97ee1833ebf30c
|