ebook-thumbnailer.py

Today I’ve announced a new little tool I wrote a couple of weeks ago. ebook-thumbnailer.py is a python script which generates cover thumbnails for some common ebook file formats.

This blog entry is a copy of the program web page.

../../../_images/ss-ebook_thumbnailer.png

The package also includes the needed schemas to be integrated with GNOME 3 but it should easily work with any other desktop environment.

Current supported formats are:

  • .fb2
  • .epub
  • .pdf
  • .mobi, .prc, .azw, .azw4
  • .chm

Dependencies: python v2.6+, pygtk, cairo, pypoppler, mobi_unpack, python-chm

Note that, as mobi_unpack is not usually provided by your OS, download it from MobileRead, copy to your system and change line #160 in the script. Search MOBI section in source for more information.

You could even use PIL/Imaging instead of pygtk to create the image files. Code is already there, just comment/uncomment the proper lines in function create_thumb.

To download follow the link at the beggining of the post.