invoke-ai / invoke-ai/InvokeAI

[enhancement]: Improve viewport zoom scaling quality (reduce aliasing)

Open
#8,039 1 comment 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
28.2k
Forks
3k
Avg merge
6d 5h
Merged PRs (30d)
19

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Contact Details

_No response_

### What should this feature add?

Just a quick observation/suggestion regarding the image display when zooming in the canvas/viewer. I immediately noticed that at zoom levels other than 100%, images (especially with lineart) can look quite aliased or "jaggy" (see attached image comparing with how Photoshop handles it).

![Image](https://github.com/user-attachments/assets/d0c0395b-e599-439f-bb02-a0a74288318c)

I guess Invoke is just using nearest-neighbor scaling, rather than something like bilinear/bicubic filtering which helps smooth things out. It can make it a bit tricky to work with finer details when not at 100% zoom and gets a bit annoying having to always reset it back to 100% to properly assess quality.

I couldn't find any discussion about it so I don't know if there's a way to enable better filtering that I missed. Apps like Nvidia ICAT default to nearest neighbor but have a toggle for bilinear which would be great here. I don't know if there's a technical limitation but I'd love if better viewport scaling could be considered for a future update. Love the tool otherwise!

Cheers

### Alternatives

_No response_

### Additional Content

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.