Skip to content

Hopson97/Pixelator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixelator

Simple program to take an image and pixelate it.

It works by taking the average colour around an area, and then filling that area with that colour

Building

Requires SFML library

On Ubuntu:

sudo apt-get install libsfml-dev

Building:

git clone https://github.com/Hopson97/Pixelator.git
cd Pixelator
cmake .
make

Running

./pixelator <image-file> <pixel-size>

The pixel size must be a number divisible exactly by both the image width and height

Example

./pixelator monalisa.jpg 12

Output:

MonaLisaPixel

About

Input an image, out comes pixel art

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published