The main idea of the project is to reduce the size of the image by reducing the resolution and image quality. This has been done by using OpenCV. Here i had taken the image 'cameraman.jpeg' and reduced the resolution by x% percent as input parameter.
- g++ -ggdb
pkg-config --cflags opencv
-obasename FinalImgProcess.cpp .cpp
FinalImgProcess.cpppkg-config --libs opencv
- ./FinalImgProcess /image-compression/cameraman.jpeg 20