Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
5.14.1
-
None
Description
The following code fails:
QImage image("phake cave trip1.jpg"); bool couldSave = image.save("test.png"); //couldSave returns false Q_ASSERT(couldSave); //This fails image.setColorSpace(QColorSpace()); //Clearing the color space is a workaround couldSave = image.save("test.png"); //This works Q_ASSERT(couldSave);
Image is "phake cave trip1.jpg" is attached.
This also outputs:
libpng error: known incorrect sRGB profile
on the commandline.
Attachments
Issue Links
- duplicates
-
QTBUG-81604 A QImage created from certain jpg files cannot be saved as a PNG
- Closed