Set Image Preview in Dolphin to filter nearest?

Can I set image previews in Dolphin to filter to nearest, especially for smaller files?

I want to be able to have pixel art previews, which I want to be pixel perfect (filtered by nearest).

Seems Dolphin lets you add thumbnailers for new formats, but unfortunately, not override its built-in ones.

But it caches thumbnails in ~/.cache/thumbnails, so if you generate thumbnails with a script ahead of the time, in the format Dolphin expects, it will happily use that.

Example command line:

magick /home/jin/tmp/test.png -filter point -resize 320 -raise 20 -set "Thumb::URI" "file:///home/jin/tmp/test.png" -set "Thumb::MTime" (stat -c %Y /home/jin/tmp/test.png) PNG32:x-large/(echo -n file:///home/jin/tmp/test.png | md5sum | cut -d ' ' -f 1).png

While unfortunate, completely overriding the thumbnailer shouldn’t even be necessary, as long as Dolphin provides some settings to set for them.

Dolphin doesn’t have (anymore) settings for thumbnails generation.

But dolphin supports two kinds of thumbnailers, plugins (kio-extras…) and thumbnailers (Thumbnail Managing Standard blog post: Gnome Thumbnailers) that are just scripts with some metadata located in special folders (/usr/share/thumbnailers).

You can disable the built-in thumbnailer plugin and replace it with your own.

Set Image Preview in Dolphin to filter nearest? - #2 by jinliu would work too.

What is smaller files ?
Less than 256 px x 256 px ?

I wouldn’t mind adding this by default.

What would be affected, the small icon, the big icons, the information panel ?

Spectacle has such a behavior when zoom is active.

Yeah, anything smaller than 256 or maybe only 128 pixels is what I consider “small”.

I’d say everywhere? I mainly only use big icons to preview images. Small icons would probably not have enough screen real-estate to actually see the individual pixels well enough.

Indeed, that’s how I view them quickly if I do need to view it as crisp pixel art, but opening and closing a separate app just to view something quickly gets tedious after a while.

We have a contradicting use-case: icons designing. Without necessarily using plasma-sdk cuttlefish.
It is great that one can have previews from dolphin.