Skip to content

devanshu0x/pixelation-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pixelation-cli

A simple cli to pixelate a png image.


Pixelation is used to reduce an image's detail by enlarging individual pixels or groups of pixels so that each group represents a larger, uniform color block. This results in a blocky, mosaic-like look, where small details are lost, and the image appears coarser. It gives a picture retro game like effect.


Images

pixelated

Image 1 Image 2

PS: If you zoom in a little bit you'll be able to see the difference clearly


Usage

For Windows-

JUST USE WSL AND FOLLOW THE STEPS BELOW

For Linux/MacOs -

Just make sure you have libpng and gcc on your machine.

gcc pixelate.c -o pixelate -lpng

This will compile the source code then just run the cli using

./pixelate <input_image_name.png>  <output_image_name.png> <pixelation_factor>(optional)

Make sure the compiled binary and input image is in same folder or just add the compiled binary to path

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages