Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

useless-tools/pixelate

Repository files navigation

pixelate

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

About

Make your photos worse. But like a pixel art.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /