9

The Problem

Can I make nautilus show thumbnails of book covers for files in .epub format?

It shows thumbnails for pdf files but not .epub. Is this achievable by adding a thumbnailer?

Each of these .epub files has a cover.jpeg file inside it.

Screenshot

Example Epub file (Google Drive)

Sumeet Deshmukh
  • 8,628
  • 11
  • 55
  • 93

2 Answers2

9

No need to worry about scripts. do everything one by one

 sudo apt-get install python-pil

Now download this file from epub-thumbnailer GitHub page

now extract that file to a folder, and go into the extracted folder, Right click in empty space and select Open in Terminal and type the following command

sudo python install.py install
nautilus -q

now check your Epub files they should have thumbnails

Sumeet Deshmukh
  • 8,628
  • 11
  • 55
  • 93
Yoginee Pingale
  • 1,210
  • 2
  • 11
  • 24
  • well I already did it with the help of [Elder Geek](https://askubuntu.com/users/225694/elder-geek) in comments but thanks for the answer anyway. procedure was pretty much the same – Sumeet Deshmukh May 16 '17 at 09:56
  • Thx. Got it working on ubuntu 18 by installing: sudo apt-get install python-pil – Osolong Nov 22 '18 at 16:30
3

It works like a charm in Ubuntu 22.04.01

$ lsb_release -a 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

$ python --version
Python 3.10.4

Step by step instructions

  1. Clone the epub-thumbnailer projectgit clone https://github.com/marianosimone/epub-thumbnailer.git
  2. Change directory cd epub-thumbnailer/
  3. Install Pillow pip install Pillow
  4. Install epub-thumbnailer sudo python3 install.py install
Checking dependencies ...

Required dependencies:
    Python Imaging Library .......
OK

Installing epub-thumbnailer to /usr/bin/ ...
OK
Installing thumbnailer hook in /usr/share/thumbnailers ...
OK
You might have to restart your file manager for the thumbnailer to be activated.
  1. Clear the cache rm -rf ~/.cache/thumbnails
  2. Restart your file manager
  3. Done!