Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Duplicate
-
Affects Version/s: 5.14.1
-
Fix Version/s: 5.14.2
-
Component/s: Image formats
-
Labels:None
-
Platform/s:
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
-