Writes JPEG image to file.
num_channels must be 1 (Y), 3 (RGB), 4 (RGBA), image pitch must be width*num_channels.
note that alpha will not be stored in jpeg file.
boolcompress_image_to_jpeg_file(const(char)[] fname, int width, int height, int num_channels, const(ubyte)[] pImage_data)
Writes JPEG image to file. num_channels must be 1 (Y), 3 (RGB), 4 (RGBA), image pitch must be width*num_channels. note that alpha will not be stored in jpeg file.