Bug report #14960

effect: anti-aliasing seemingly broken when layer-wide effects enabled

Added by Mathieu Pellerin - nIRV over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:High
Assignee:Nyall Dawson
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22909

Description

I've just noticed a serious (if one cares about quality of exported composers ;) ) issue with effects. Under a specific symbology composition scenario, enabling layer-wide effects results in pixelated border. If I had to guess what's happening here, it looks like the transparency is dropped, affecting rendering of anti-aliased edge.

The effect_vs_noeffect.png screenshot probably does a better job at demonstrating the issue than my introductory paragraph above.

A test project is also attached to reproduce this issue.

effect_vs_noeffect.png (30.3 KB) Mathieu Pellerin - nIRV, 2016-06-05 07:07 PM

effect_issue.zip (6.33 KB) Mathieu Pellerin - nIRV, 2016-06-05 07:07 PM

Associated revisions

Revision 179a92cd
Added by Nyall Dawson over 8 years ago

[effect] fix issue with svg marker and antialiasing (fixes #14960)

Credit for original patch to @nirvn

Revision 0a93bdd3
Added by Nyall Dawson over 8 years ago

[effect] fix issue with svg marker and antialiasing (fixes #14960)

Credit for original patch to @nirvn

(cherry-picked from 179a92cd65a70a411c8085875ab3e20bf5fa5d46)

History

#1 Updated by Mathieu Pellerin - nIRV over 8 years ago

Just tested: the problematic rendering equals rendering of marker without anti-aliasing (i.e. if you go in QGIS' preference window and switch anti-aliasing off).

Issue also affects filled markers, and ellipse markers.

#2 Updated by Mathieu Pellerin - nIRV over 8 years ago

Few more observations:
- The issue is actually triggered by the use of an SVG marker layer; if I have an svg marker layer added, the absence of antialiasing will appear after the first feature is rendered.
- Scarily enough, it affects everything, including polygons (if you end up using centroid fill with an svg marker), lines (if you use an svg marker on vertexes), etc.

#3 Updated by Nyall Dawson over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF