Skip to content

[enhancement] Expose smooth scaling options in viewer settings UI - #117

Open
blakewilliams1 wants to merge 1 commit into
pop-os:masterfrom
blakewilliams1:pixelated-setting
Open

blakewilliams1 wants to merge 1 commit into
pop-os:masterfrom
blakewilliams1:pixelated-setting

Conversation

@blakewilliams1

@blakewilliams1 blakewilliams1 commented Nov 20, 2026 •

Copy link
Copy Markdown

This adds an existing setting to the Settings context drawer called "Smooth scaling", which as it suggests it determines how to interpolate the image when zooming in more than 100%. It uses the existing property called "smooth_scaling" on the ViewerConfig struct, which was unused up till this PR. By default, the interpolation is and has always been Linear and toggling smooth scaling off changes it to Nearest Neighbor. Using Nearest Neighbor is often preferable when viewing very small images and pixel art.

Here it is in use with the user's choice persisting across instances of cosmic-viewer being opened:

Kooha-2026-11-20-00-28-29.webm

There are the only 2 options that the iced Renderer::FilterMethod class comes with, and coincidentally ViewerConfig.smooth_scaling is a boolean exactly aligned to have a name and default value aligned with that enum from Renderer.

Related to issue here: #115


  • I have not included any LLM (also known as AI) generated content in this PR, including code, comments, and descriptions.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.
  • I have read and followed all of the above requirements. For more information, see our contributor guide.

@blakewilliams1 blakewilliams1 changed the title Exposing smooth scaling options in viewer settings UI [enhancement] Expose smooth scaling options in viewer settings UI Nov 20, 2026
@mmstick
mmstick requested a review from a team November 24, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant