I use Magick++ to process images, the codes below throw a warning:"Magick: iCCP: known incorrect sRGB profile () reported by coders/png.c:1105 (PNGWarningHandler)"
......
string img;
//assign image to this string(img)
std::list<Image> m_images;
......
Blob src_blob(image.data(), image.length());
readImages(&m_images, src_blob);//in this function throw a warning exception
if (!m_images.empty()) {
Image image = *(m_images.begin());
}
......
But if I construct Image like this:
Blob src_blob(image.data(), image.length());
Image image(src_blob);
the codes will work and no throw exception
the identify of this image:
$identify case1.png
case1.png PNG 800x800 800x800+0+0 8-bit sRGB 807280B 0.000u 0:00.004
(I have to use readImages because I may process gif image)