Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.41 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.41 KB

pyPixelate

pyPixelate pixelates your image into a pixel art asthetic.

Example:

Original & Output (pyPixelate.py, Original, 25px per tile, 50px per tile, 100px per tile)

Original & Output (pyPixelateE.py, Original, 25px per tile, 50px per tile, 100px per tile)

Credits: https://akebi-chan.jp/

Prerequisites

  • numpy
  • cv2

Usage (pyPixelate.py)

Windows:

python pyPixelate.py <image> <block size> <output image (e.g. 1.jpg)>

Linux & macOS:

python3 pyPixelate.py <image> <block size> <output image (e.g. 1.jpg)>

Usage (pyPixelateE.py) (E for Enhanced and Experimental)

Windows:

python pyPixelateE.py <image> <block size> <output image (e.g. 1.jpg)>

Linux & macOS:

python3 pyPixelateE.py <image> <block size> <output image (e.g. 1.jpg)>

It might take a while to create a the pixelised picture.

Parameters

  • PADDING (Image Output Size, must be a multiple of block size)
  • GRID_LINES (To produce grid lines in final output, boolean value)