Skip to content

JohnnyDeuss/pixelate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Pixelate

This script pixelates an image using a colour palette of a given size.

Installation

To run the script, first install its dependencies:

pip3 install opencv-python numpy

Usage

The pixelate script syntax is as follows: python3 pixelate.py input_path output_path

For optional usage and additional parameters, use: python3 pixelate.py --help

Examples

The examples folder shows a couple of example pictures pre and post pixelization. Here are some examples:

Mountain lake

Pixelated with b = 8 and c = 64.

Pixelated mountain lake with b = 8 and c = 64

Pixelated with b = 4 and c = 8.

Pixelated mountain lake with b = 4 and c = 8

With b = 1, the script essentially reduces the image to a smaller color palette, creating some cool effects.

With c = 4.

Pixelated mountain lake with b = 1 and c = 4

With c = 2.

Pixelated mountain lake with b = 1 and c = 2

About

Script to pixelate an image and reduce its color palette

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages