I currently use FreeImage to convert a BMP file to a JPG file, but I need to use a static library to deploy my program, and it's impossible to compile FreeImage as static library with Dev-Cpp (minWG).
I know that a libjpeg exists, but I don't know if it possible to do that I want.
My actual code is bellow.
If anybody have a solution to my problem...
Thanks in advance !
bool bmp_to_jpg(char *bmp_filepath, char *jpg_filepath)
FIBITMAP * image1, * image2;
image1 = FreeImage_Load(FIF_BMP, bmp_filepath, 0);
image2 = FreeImage_ConvertTo24Bits(image1);
if (!FreeImage_Save(FIF_JPEG, image2, jpg_filepath, JPEG_QUALITYGOOD))