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

A QImage created from certain jpg files cannot be saved as a PNG

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.14.2, 5.15.0 Alpha
    • Component/s: Image formats
    • Labels:
      None

      Description

      Please see the attached project. It loads two jpg images and tries to save them as png. Image two gets converted to sRGB before saving. Both save calls return false, though the converted one actually does get saved. For the unconverted image a zero size file is created.

      This is the debug output:

       

      09:35:21: Starting /home/boud/src/build-qimagetest-5_14-Debug/qimagetest ...

      image1 false result true

      image2 false result true

      libpng error: known incorrect sRGB profile

      Result of saving image1 as png false

      Result of saving image2 as png false

      09:35:22: /home/boud/src/build-qimagetest-5_14-Debug/qimagetest exited with code 0

        Attachments

        1. qimagetest.zip
          905 kB
          Boudewijn Rempt

          Issue Links

          For Gerrit Dashboard: QTBUG-81604
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              boudewijn Boudewijn Rempt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes