A Python project for enhancing images using various processing techniques.
Project description
Image Scaler
This Python application reads a low-resolution .png image and generates a scalable .svg version. The .svg file can be used as a high-resolution wallpaper. The application samples the colors of each hexagon to reproduce the same picture.
How to use ?
- Clone the repository.
- Install the tool and necessary libraries using:
poetry install
. - Use it:
poetry run main [--help] [-g {hexagonal,square}] [-p {random,average,frequent}] [-s SIZE] image_path
.
Note: for more details about all the available params use the following command: poetry run main --help
.
Examples
Original Image | Generated SVG |
Materials & Notes:
This are for people who want to dig in hexagonal grids & know how to deal with it. Ignore if you only want to use the tool.
- https://www.redblobgames.com/
- https://www.geeksforgeeks.org/creating-svg-image-using-pycairo/
- https://gamedev.stackexchange.com/a/61101
Docs Building Notes
poetry add sphinx --dev
: to install sphinx.poetry run sphinx-apidoc -o docs/ src/
: to generate the .rst files for each module. This command should be run each time you have a new module or there is some changes in one of your modules.poetry run sphinx-build -b html docs docs/_build
: to build the documentation. Each time there is a change.
Upload to Pypi
poetry config http-basic.pypi __token__ <api-toke>
: to specify your pipy credentials.poetry build
: build the project.poetry publish
: to publish the builded project into pypi.
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
File details
Details for the file image_transformer-0.2.5.tar.gz
.
File metadata
- Download URL: image_transformer-0.2.5.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1253f5f6f441da69962b31b06ab1b866b0ea122ff80d1e94bcb886d2cc48b5de |
|
MD5 | 881c468a83e91c37c541310082756bae |
|
BLAKE2b-256 | 73b19853969da368c99cc39bc4e0f047a12a6ed1b1b299192518b699ce664f94 |
File details
Details for the file image_transformer-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: image_transformer-0.2.5-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5a125dcf6976f8aa65e2f25bb86334387b4a6104185f87fac5e9e85455aaaec |
|
MD5 | fcb7bf4586f94d6ea336d0fa8ab73333 |
|
BLAKE2b-256 | c6995e4bce8f8d7321611ab8a5e9fe4af0db9b0049e840b293c0ca24c8efe910 |