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

Grayscale PNG with QImage does not support transparency

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.6.2
    • Image formats
    • None

    Description

      Creating an 8-bit greyscale PNG does not support setting a transparency using the tRNS field in the PNG header.  The work around is to write the PNG using QImage::save, then read the entire file to QByteArray, insert the tRNS field, and then write the file.  It should be fairly straight forward to allow the user to set a transparency before creating the image such that the header is included when invoking QImage::save.

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            akozak Alexander Kozak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes