Subject: [Boost-users] How to convert cmyk jpg file to rgb jpg file with BOOST.GIL?
From: Guangchao Wang (guangchao0831_at_[hidden])
Date: 2013-11-11 23:21:22


I used following code:

rgb8_image_t rgb8Img;

jpeg_read_and_convert_image("CMYK.jpg", rgb8Img); //CMYK.jpg is CMYK image

jpeg_write_view("RGB.jpg", const_view(rgb8Img));

to convert CMYK image to RGB image.

The saved RGB.jpg is not correct.

Could you give me some suggestion? Thanks.