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

MultiEffect's blur effect has error(maybe) color

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.0.0
    • None
    • Linux/Wayland, Linux/X11

    Description

      The file `test_blur.zip` contains a simple test code that demonstrates an issue when using MultiEffect to blur a red circle on a green background. After blurring, there is a very noticeable black ring around the red circle.

      The example tests two scenarios. In the first scenario, the red circle's rectangle has anti-aliasing enabled, while in the second scenario, it does not. With anti-aliasing enabled, there is a ring of black pixels around the circle, which might be related to the sRGB color space? I'm not an expert in this area, so I can only speculate on the cause. Since the source image contains black pixels, it's understandable that the MultiEffect blur results in black areas. However, in the second scenario, since anti-aliasing is not enabled, the source image does not contain black pixels, yet the blurred image still has black areas. Is this a bug in Qt? Or is this also related to the sRGB color space?

      I tested using the Gaussian blur filter in GIMP, and it worked well. I have uploaded screenshots of the program running from `test_blur.zip`, as well as the secondary blur effect from GIMP on the test_blur program screenshot.

      If this is not a bug, how can I achieve a blur effect in Qt without black pixels, similar to GIMP? Is it possible to do this via MultiEffect?

      Attachments

        1. images.zip
          776 kB
        2. test_blend_blur_use_gimp.png
          test_blend_blur_use_gimp.png
          521 kB
        3. test_blend_screenshot.png
          test_blend_screenshot.png
          195 kB
        4. test_blend_zoom.png
          test_blend_zoom.png
          108 kB
        5. test_blur.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            zccrs JiDe Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes