Skip to content

Instantly share code, notes, and snippets.

@pajadam
Created August 4, 2018 16:24
Show Gist options
  • Select an option

  • Save pajadam/105ad68686a6c9b8fa30548068ce49d6 to your computer and use it in GitHub Desktop.

Select an option

Save pajadam/105ad68686a6c9b8fa30548068ce49d6 to your computer and use it in GitHub Desktop.
WebP image thumbnails in Nautilus w/ correct scaling

WebP image thumbnails in Nautilus w/ correct scaling

  1. Install libwebp
  2. Place webp.thumbnailer in /usr/share/thumbnailers/
  3. Stop nautilus process
  4. Clear thumbnails cache
  • rm ~/.cache/thumbnails/normal/*
  • rm ~/.cache/thumbnails/large/*
  • rm ~/.cache/thumbnails/fail/gnome-thumbnail-factory/*
  1. Run nautilus and enjoy WebP thumbnails!
[Thumbnailer Entry]
Exec=/usr/bin/dwebp %i -mt -scale %s 0 -o %o
MimeType=image/x-webp;image/webp;
@danisztls
Copy link

Is there a reason to not rm thumbnails entirely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment