Skip to content
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

Bad scaling on large images #388

Open
Stoppedpuma opened this issue Jun 27, 2024 · 6 comments
Open

Bad scaling on large images #388

Stoppedpuma opened this issue Jun 27, 2024 · 6 comments

Comments

@Stoppedpuma
Copy link
Collaborator

Scaled-down images appear blurry. Examples using the redesign at 5120x2892:

qimgv:
image

oculante:
image

@woelper
Copy link
Owner

woelper commented Jun 28, 2024

Since this uses the graphics card to display image as a texture, I only have Linear and Nearest available as filters. I could make this configurable, but you will get jaggy edges - it might look crisper though.

I can also turn off mipmap generation which might help too.

@Stoppedpuma
Copy link
Collaborator Author

This is hard as this is one which will piss off at least a few users if it's not better across the board, it's only really bad in cases like this with small, similarly coloured text.

Is post processing an option to allow other scaling options such as lanczos? This would best be a toggle it it's possible to implement because of the odd 30000x30000 image.

@woelper
Copy link
Owner

woelper commented Jun 28, 2024

I'll add options to configure this in the settings. I think turning off mipmaps will make the biggest difference. If there are still people pissed off I might be fine with that :)

There is also FSAA we could try and other tricks.

@woelper
Copy link
Owner

woelper commented Jun 28, 2024

You can try this in master now.

@Stoppedpuma
Copy link
Collaborator Author

Cool, I'll get back to you with results soon!

@Stoppedpuma
Copy link
Collaborator Author

Stoppedpuma commented Jun 28, 2024

Works great for text, mipmaps off and linear_min_filter on seem to be a good combination for text. For other places like small icons, not so much but re-enabling mipmaps help.

There is also FSAA we could try and other tricks.

Might be worth trying out if you have the time, especially if you want to match or beat qimgvs implementation.

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

No branches or pull requests

2 participants