switerom / Pixalate-Image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pixelate Image Filter

Pixel Art Filter is an image filter that pixelates PNG images using a lossy image compression algorithm, written in C++ using g++ and LodePNG.

Deployment

To compile the project, use the command:

make

And once that is finished, run the project using:

./pixelate.exe

Once this is completed the output will be in the images/ folder.

Change pixelation effect

To add your own images, add PNG files to the images/ folder.

Go to main.cpp and modify the parameters:

origImg1.readFromFile("images/photo.png");

To play with the pixelation effect, modify the parameters:

t1.prune(0.99, 8500);

Finally, to change the output image names, modify the parameters:

pic1.writeToFile("images/output-photo.png");

Before/After:

About


Languages

Language:C++ 100.0%Language:Makefile 0.0%