-
Notifications
You must be signed in to change notification settings - Fork 88
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
App icons are blurry with 200% scaling #3176
Comments
But you can always zoom in deep enough, to make it blurry - not much we can do here. |
I'm not zooming to 200% with my browser. I have 200% scaling enabled in GNOME because I have a HiDPI screen. I'm not asking flathub to support an arbitary high resolution for icons here. But if you use 128x128 px icons on the website you should provide 256 x 256 px icons for HiDPI screens too. Otherwise Flathub looks blurry for everyone with a modern HiDPI screen like for example 2880x1800 14-inch laptops. App icons appear blurry in GNOME Software too on HiDPI screens: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2559 |
Blocked on #1453 then as this would bog down smaller screens / bad connections otherwise |
I think a CDN as mentioned in #1453 might not be needed to accomplish using different PNGs at different integer scale levels. PNG are already available for 2x integer scale and most up to date browsers should support the
|
I have tested my approach by manually editing the html of Flathub's website using the Firefox developer tools like this:
It works :) |
I've added the You can use it to get the correct icon paths, but it might be empty |
Why can they be empty? Are the icons and specifically 128x128@2 not automatically created by the Flathub CI? |
No, they are only generated if the app has a scalable svg (or maybe if they provide a big enough png) and if they have been rebuild since we switched to libappstream |
Is it possible to check the availability of the @2 icons somehow and fall back to the default icon if it's not available? |
There is https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2559 tracking the corresponding issue about blurry icons in GNOME Software. |
You can do that via the |
Trying to use srcset via nextjs seems broken for our use case |
App icons are blurry with 200% scaling:
The icon used here (https://dl.flathub.org/media/org/gnome/gitlab.somas.Apostrophe/79e84cd62f433972088419e196bc13ff/icons/128x128/org.gnome.gitlab.somas.Apostrophe.png) is 128x128px and probably scaled up to 256x256px. In the requirements for application icons either .svg or a .png with at least 256x256px is defined. The original icon of Apostrophe from the screenshot for example is provided as a .svg. Is flathub creating the png version used on the website and only generates 128x128px files?
The text was updated successfully, but these errors were encountered: