This is a very simple CLI that turns .png files into grayscale images by adding each pixel RGB values together and calculating the average.
- Use the executable:
./grayscaler <img.png>
- Input:
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.
mkdir build
cd build
cmake ..
make
or short:
mkdir build && cd build && cmake .. && make