Fabbboy / grayscaler

Simple grayscale generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C 100.0%Language:CMake 0.0%