Skip to main content

The library / CLI-utility provides pixelation of images

Project description

https://travis-ci.org/useless-tools/pixelate.svg?branch=master

Make your photos even worse. But it’s like pixel art.

Works with Python ≥ 3.2. Use version 0.4 for Python 2.* projects.

Installation

pip install pixelate

Usage

From CLI:

pixelate --input=img/bps.jpg --output=img/bps.png --pixel-size=10

pixelate arguments:

  • –input – string – path to input image.

  • –output – string – path to output image.

  • –pixel-size – integer – pixel size.

From Python code:

from pixelate import pixelate

pixelate('img/bps.jpg', 'img/bps.png', 10)

Args:

  • input_file_path: the path to the source image file to be processed.

  • output_file_path: the path to the result file.

  • pixel_size: pixel size.

From this:

original bps

To this:

pixeated bps

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

pixelate-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file pixelate-1.0.0.tar.gz.

File metadata

  • Download URL: pixelate-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for pixelate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 afa10104c3203769e3e07948477856f14764ded34a243963e37cba962c79b1ef
MD5 783396fadaa34fa1f0030f4ebcd1e92b
BLAKE2b-256 d69f8e43d4f878463d3a68e30656919b4798d2c30bf173311fe5c385c11f9a24

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