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

QImageWriter Makes Large PNG

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.15.3
    • Image formats
    • None
    • macOS

    Description

      The attached example program writes a PNG file that should be 100KB, but QImageWriter writes a large 118MB file that doesn't seem compressed.  QImage::save does the right thing. Qt 5.9.6 works fine, but 5.15.3 is broken.  QImageWriter::setQuality does nothing.  To be consistent with QImage::save, I would expect:

      "The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings."

      Attachments

        1. badPngCompression.zip
          37 kB
        2. terminal.png
          terminal.png
          34 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            remik Remik Ziemlinski
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes