7

I have too many images to search at visually, so I cannot open each one of them individually.

What I have to do or install to show DDS images previews on nautilus?

I would like to preview webp too if possible.

13

create files at /usr/share/thumbnailers with these names and content:

DDS
from here:

dds.thumbnailer

[Thumbnailer Entry]
Exec=/usr/bin/convert -thumbnail x%s %i png:%o
MimeType=image/x-dds;

WEBP
based on this:

webp.thumbnailer

[Thumbnailer Entry]
Exec=/usr/bin/dwebp %i -scale 100 100 -o %o
MimeType=image/x-webp;image/webp;

and restart nautilus after fully quitting it with nautilus -q

Obs.: the problem with this webp approach is that all thumbnails will be 100x100. But this script makes it work properly.

  • 4
    If you replace the 100 with %s you'll get the appropriate size. Like this: Exec=/usr/bin/dwebp %i -scale %s %s -o %o – Liminal Jun 4 '16 at 11:09
  • @Liminal I had to update it to mime image/webp and I tested -scale %s %s but that was also giving me squared thumbnails of 256x256. On the other hand, the script calculates and gives the right proportional thumbnail size for x or y. ubuntu 16.04 here – Aquarius Power Aug 31 '17 at 1:25
  • There is a missing step here. You have to delete all cached thumbnails for Nautilus to be able to generate them again: rm ~/.cache/thumbnails/fail/gnome-thumbnail-factory/* rm ~/.cache/thumbnails/large/* rm ~/.cache/thumbnails/normal/* killall nautilus – Pere Joan Martorell Nov 29 '18 at 19:34
  • @pj.martorell interesting, I really dont remember having to do that, but apparently I probably did xD, btw, it could also be nautilus -q – Aquarius Power Nov 30 '18 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.