Blog?

It's kind of a blog if you don't think about it too hard

feed Atom Feed


Contents

Home


Valid HTML 4.01 Strict [Valid Atom 1.0]

Fast network image thumbnails in GNOME/Nautilus/Nemo

January 14, 2021

I recently noticed that when browsing a network folder full of photos in Linux using Nautilus or Nemo, the thumbnails are generated much, much slower than they are when browsing the folder from Windows Explorer. I don't know what Windows' secret sauce is for this problem, but I realized that by extracting the thumbnails embedded in the EXIF data of many JPEG files, thumbnail generation performance can be greatly improved since the entire file no longer needs to be transferred over the network in order to generate its thumbnail. And so, jpeg-exif-thumbnailer was born.

Requirements

The mogrify and exiftool programs must be installed. On Ubuntu and Debian, these may be found in the imagemagick and libimage-exiftool-perl packages.

This thumbnailer has been tested on Ubuntu 20.04, in the Nautilus and Nemo file managers.

Installation

Download the archive and extract it. Run ./install, or see the README for instructions on manual installation.

Known issues

If the embedded thumbnails are not large enough, Nemo falls back to reading the entire file to generate a thumbnail. Unfortunately, fast EXIF thumbnails will probably not work properly when Nemo is using a high zoom level.

Comments

Add comment

Name:
Email (optional):
Comment:
Human?What is the seventh word of the above blog post?
 
Massimo 

Massimo

November 10, 2023 2:42AM

Hello,
thank you, that solved me some trouble!
Just a couple of problems:
1) The locale, if not EN, will cause problems with output of gio command. Just adding export LC_MESSAGES=C to your script will solve it.
2)Thumbnails are not rotated as the original image, but always in horizontal mode. The solution is more complicated...got it from this post :
https://exiftool.org/forum/index.php?topic=9380.0
Just replace your exiftool line with:
exiftool -config /usr/share/thumbnailers/exiftool.conf -b -rotatedthumbnail "$input_path" > "$3"
and provide the .conf file as explained in linked post.

CIao
Massimo