Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82803

PNG can't save with QColorProfile of sRGB

    XMLWordPrintable

    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:
      Windows

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              vpicaver Philip Schuchardt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes