Boost logo

Boost Users :

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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net