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 hashes)

Uploaded Source

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