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

QImage::scaled does not work for sizes beyond MAX_INT16

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      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

            Assignee:
            allan.jensen Allan Sandfeld Jensen
            Reporter:
            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