Skip to content

Browser zoom fucks image rendering resolution #1400

Description

@alterNERDtive

Describe the bug

(At least in the Tauri builds; I used to use Electron which can’t zoom, so … might or might not be a general bug 🤷)

This is entry number 3 in the “what the zoom?” series. See also #679 and #680!

If your browser zoom is not 100%, image rendering resolution is incorrect (noticeably lower). I was going to post some pictures of my lovely plants, but i think text illustrates it even better:

Image Image

Both of those are at “100%” in the image viewer, anti aliasing turned off. The first is 100% browser zoom, the second is 80% browser zoom.

Reproduction

  1. Use the Tauri nightly build.
  2. Look at a picture at 100% in the image viewer.
  3. Change browser zoom to 80% (control+minus or control+mouse wheel).
  4. Look at the same picture at 100% in the image viewer.
  5. Those are (not) the same picture.

Expected behavior

Image rendering should not be affected by browser zoom. Pretty please? :<

Platform and versions

1. OS: Fedora 43, Sway
2. Browser: CEF (Tauri)
3. Sable version: nightly (doesn’t matter which, it’s been broken the entire time)
4. Matrix homeserver: very not relevant :)

Additional context

Using the app setting for zoom doesn’t break image rendering, but has other issues (see the others in the “what the zoom?” series).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions