-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[raster] Fix glitchy/pixelated rendering of rasters on high DPI screens #56047
Conversation
8765435
to
e2f64fb
Compare
Tests failed for Qt 5One or more tests failed using the build from commit e2f64fb different_dpi_target_vector_hdpidifferent_dpi_target_vector_hdpiTest failed at test_different_dpi_target_vector at tests/src/python/test_selective_masking.py:1117 Rendered image did not match tests/testdata/control_images/selective_masking/different_dpi_target_vector_hdpi/different_dpi_target_vector_hdpi.png (found 683 pixels different) The full test report (included comparison of rendered vs expected images) can be found here. Further documentation on the QGIS test infrastructure can be found in the Developer's Guide. |
b85721d
to
24986c2
Compare
scripts/generate_test_mask_image.py
Outdated
@@ -95,6 +95,7 @@ def updateMask(control_image_path, rendered_image_path, mask_image_path): | |||
if not control_image: | |||
error(f'Could not read control image {control_image_path}') | |||
|
|||
print(rendered_image_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
24986c2
to
b0974ab
Compare
The backport to
stderr
stdout
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-3_34 release-3_34
# Navigate to the new working tree
cd .worktrees/backport-release-3_34
# Create a new branch
git switch --create backport-56047-to-release-3_34
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick e2f64fb4102274d53d2d0c6f576c27c87fb54cc0,b0974abc2c14bc471a81b9d2f3ae0a09cb6fee25
# Push it to GitHub
git push --set-upstream origin backport-56047-to-release-3_34
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-3_34 Then, create a pull request where the |
Description
This PR fixes a pretty bad regression we've been suffering from since we enabled Qt's auto scaling on high DPI environment whereas raster (of all types: geotiffs, XYZ rasters, etc.) would render pixelated on high DPI screens.
Here's a before (left) vs. fixed (right) with a simple OSM XYZ layer:
As mentioned above, this was not only tiled layers though. Here's a before (left) vs. fixed (right) with a geotiff:
Fixes #55644