-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Integer scaling (pixel-perfect scaling) for scaling images with no blur at integer scales like 2.0 (200%) #246
Comments
I get the reason why you would want If you want to change the default rendering method, it should be as simple as adding this to a stylus style: * {
image-rendering: pixelated;
} Alternatively, if you think it is valuable, I can add a pref that changes what the default render method is. |
The whole point of my proposal and how SmartUpscale works is preventing unreasonable blur at integer scales by conditional selection of what algorithm to use: It’s not about forcing I would be totally fine with enabling the feature via a pref without GUI. So we would need two prefs like these:
(The |
Thanks for the clarification. I might look into this after my semester has ended |
Images, backgrounds, and videos are unreasonably blurry in browsers even at integer scales such as 2.0 (200%) which is typical e.g. for 24-inch 4K monitors. Integer (pixel-perfect) scaling turns each logical pixel into a square group of integer number of physical pixels of the same color not affected by colors of adjacent pixels.
Would be nice to have integer scaling as a browser-wide feature. SmartUpscale extension (addon) is an attempt to force blur-free pixel-perfect scaling at integer scales while still using interpolation at fractional scales, but it can only do this for embedded images, and not for backgrounds, and performance is lower than could be with native implementation built into browser.
Are such features in the goals/scope of the project? Thanks.
The text was updated successfully, but these errors were encountered: