This program resizes an image using the STB Image library. It loads an image, resizes it to half its original size, and saves the resized image as a JPEG file.
- C compiler (e.g., GCC)
- STB Image library (https://github.com/nothings/stb)
-
Clone the repository:
git clone https://github.com/yourusername/your-repository.git
-
Compile the program:
gcc -o resize_image resize_image.c -lm
-
Run the program:
./resize_image
Make sure to replace "ENTER HERE ABSOLUTE PATH TO THE PICTURE" in the code with the absolute path to the input image file you want to resize.