Skip to main content

A Python project for enhancing images using various processing techniques.

Project description

Coverage Python Poetry


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 ?

  1. Clone the repository.
  2. Install the tool and necessary libraries using: poetry install.
  3. 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
Original Image Generated SVG
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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

image_transformer-0.2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

image_transformer-0.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file image_transformer-0.2.tar.gz.

File metadata

  • Download URL: image_transformer-0.2.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11

File hashes

Hashes for image_transformer-0.2.tar.gz
Algorithm Hash digest
SHA256 a41e13549fcb4166a27c66f205c3cadd9a4c1028ec1e911291d933e0df61fb7f
MD5 e08644d0df6e53692580578b71b02cbe
BLAKE2b-256 364b59fbc425a81dae2d8b0891ca7e5b1e453f8df0e051fde38211f3f232dbec

See more details on using hashes here.

File details

Details for the file image_transformer-0.2-py3-none-any.whl.

File metadata

  • Download URL: image_transformer-0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11

File hashes

Hashes for image_transformer-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4b152fbf5ca6c547a708d9e6f4d0659b9f42dd1ed6a2206cc83c298386af823
MD5 5fe86cb8f518c964a370e06e34436479
BLAKE2b-256 896f306f9ab5c0e0f51c338afce6e2b8353cfa2fb9fb3038d2a679ee4ab5eba1

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