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

QImageWriter Makes Large PNG

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 5.15.3
    • Fix Version/s: None
    • Component/s: Image formats
    • Labels:
      None
    • Platform/s:
      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
          Remik Ziemlinski
        2. terminal.png
          34 kB
          Remik Ziemlinski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            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