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

Large number of PNG images with incorrect color profiles and other bugs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.3.0
    • Image formats
    • None
    • Linux 64-bit

      The Qt sourcecode contains large numbers of broken PNG images. These cause warnings from libpng to be printed to stderr when running any Qt application. Simply creating a QWebView and settings its URL to about:blank causes such a warning, for example:

      python -c "from PyQt5.Qt import *; app = QApplication([]); s = QWebView(); s.setUrl(QUrl('about:blank'))"
      libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

      A list of such broken PNG images in the source tree can be generated like this:

      find . -name '*.png' -exec identify {} \; | grep MagickPNGWarningHandler

      Most of these warnings can be fixed by simply removing the broken embedded color profile like this:

      convert file.png -strip fixedfile.png

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

            vgt Eirik Aavitsland
            kovid Kovid Goyal
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes