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

QImage::scaled does not work for sizes beyond MAX_INT16

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.14.2
    • None
    • Linux/X11
    • 04413b9dd8f3983fd5471354a48ad1257ca4f290 (qt/qtbase/dev)

    Description

      Scaling a QImage with either height or width beyond qint16 max value yields fully transparent pixels in the target image.

      The attached MWE shows the behavior: we start with a fully opaque white image of either INT16_MAX+1 in width or height, and 1 in height or width respectively. Then we scale the latter dimension to 2. The expected outcome would be a fully white image. In reality, the last pixel will be fully transparent.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            milianw Milian Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes