Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 689 Bytes

readme.md

File metadata and controls

28 lines (24 loc) · 689 Bytes

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