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

Blurry image thumbnails on HiDPI screen (5k, 200% UI scale) in Nemo, Pix and Xviewer #235

Open
ghost opened this issue Oct 18, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2023

I believe this affects all default apps (Nemo, Pix, Xviewer and probably some other apps as well) that are utilizing the same common image thumbnails creation pipeline.

Issue:
On my HiDPI screen with a 5k resolution and scaling set to 200% in system settings, all image thumbnails are blurry in Pix and Xviewer. In Nemo all thumbnails are only blurry if their size set to maximum value via that slider in the corner of the window.

As a photographer and graphic designer I prefer to browse images in folders in big thumbnails mode and I also use Pix a lot as it is a truly great app. Unfortunately, blurry images everywhere is not what I expected, especially when absolutely everything else in the system (UI, fonts, icons) is razor sharp on my screen.

Possible solution:
By looking at source code, I noticed the following lines with hardcoded values in cinnamon-desktop/libcinnamon-desktop/gnome-desktop-thumbnail.c:

size = 128;
	if (factory->priv->size == GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE)
		size = 256;

It may be a good idea to take current screen resolution and display scaling percentage setting into account here.
And if a HiDPI display is detected then all thumbnail sizes should be multiplied in order to stay sharp in all apps and be on par with everything else.

I tried recent Debian 12.2 live .iso with GNOME desktop and all thumbnails are razor sharp here.
Seems like they are utilizing more sizes for thumbnails which definitely suits better for modern screens today:

case GNOME_DESKTOP_THUMBNAIL_SIZE_NORMAL:
	return 128;
case GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE:
	return 256;
case GNOME_DESKTOP_THUMBNAIL_SIZE_XLARGE:
	return 512;
case GNOME_DESKTOP_THUMBNAIL_SIZE_XXLARGE:
	return 1024;

It would be so great to see similar improvements and bigger thumbnail sizes generation finally become available in Mint/Cinnamon apps because I really love Cinnamon and plan to continue to use it as my daily driver.

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

0 participants