Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Gwenview Gwenview
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Graphics
  • GwenviewGwenview
  • Merge requests
  • !122

Merged
Created Dec 06, 2021 by Nate Graham@ngrahamDeveloper

Only switch to Qt::FastTransformation ("showing pixels") at 400% zoom

  • Overview 4
  • Commits 1
  • Pipelines 4
  • Changes 1

Right now Gwenview uses Qt::FastTransformation to show individual pixels at any zoom value higher than 100%. This is not optimal and results in poor display for low zoom levels where a smoothed image is more aesthetically desirable. But there are use cases for seeing individual pixels--for example when looking at the details of a line-art graphic or an icon, or examing an image to see its individual colors. These use cases becomes more likely as the zoom level is increased.

Accordingly, this commit changes Gwenview to shop smoothing zoomed-in images at an arbitrarily-chosen threshold of 400% zoom. At that level or above, the image will be unsmoothed and you can see the individual hard-edged pixels.

BUG: 443010 FIXED-IN: 22.04

cc @teams/vdg @teams/usability

Edited Dec 07, 2021 by Nate Graham
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: pixels-only-at-high-zoom