Skip to content

Fabbboy/grayscaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grayscaler for PNG images

This is a very simple CLI that turns .png files into grayscale images by adding each pixel RGB values together and calculating the average.

Usage:

  1. Use the executable:
./grayscaler <img.png>
  1. Input:

3. Output:

Implementation

If you want to see the implementation just look into the main.c. We use the stb_image library but as you can see this are header only so you can just compile the project.

Compilation

mkdir build
cd build
cmake ..
make

or short:

mkdir build && cd build && cmake .. && make

About

Simple grayscale generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages