marianosimone / epub-thumbnailer

Script to extract the cover of an epub book and create a thumbnail for it
GNU General Public License v3.0
191 stars 29 forks source link

Thumnbailer not working in Ubuntu Gnome 16.04 #11

Closed dondurito closed 7 years ago

dondurito commented 7 years ago

Hi there,

although I followed your instrucitions precisely the epub thumbnailer is not working on my machine. Nautilus still shows the general icons.

I'm running Ubuntu Gnome 16.04.

Hope you can help me with this matter, thanks, Don

marianosimone commented 7 years ago

Hi @dondurito. A couple of questions to diagnose your problem:

  1. Did the installation run successfully?
  2. Did you try running the command manually for a given epub (e.g. epub-thumbnailer ~/some_book.epub ~/cover.png 100)?
  3. What's the output of:
    • gnome-session --version
    • ps -A | egrep -i "mate|gnome|xfce4|unity"
  4. What file manager are you using? (Nautilus? Thunar?)

Thanks!

dondurito commented 7 years ago

hey @marianosimone - thanks for your quick reply.

  1. Installation ran successfully without any error messages
  2. works - cover is extracted and saved to png.file
  3. commands:
  4. command doesn't give any output. usr/share/gnome/gnome-version.xml states that I'm using 3.18.2
  5. tells me that the commands gnome and xfce4 can't be found and that unity at the moment is not installed but I could install it (what I don't want)
  6. I'm using Nautilus

I hope these information can give any hint. Thanks!

marianosimone commented 7 years ago

Given that the extraction is not working, let's try something else:

1.Would you mind trying with this book? https://dl.dropboxusercontent.com/u/241376/Roberto%20Arlt%20-%20Los%20Siete%20Locos.epub

  1. If possible, could you provide me the book you tried and didn't work?
  2. What's the output of python --version?
dondurito commented 7 years ago
  1. As I edited my post yesterday - extraction to png-file works (I missunderstood the usage of manual extraction at first) with you ebook as well as with mine. Still nautilus shows no cover.
  2. Tried it with that book: Link ...same here, extraction works, cover stil not shown
  3. Python 2.7.12
passerbyGitHub commented 7 years ago

I'm using Ubuntu-Gnome 16.10

  1. Installation run successfully
  2. Cover is extracted and saved to png.file
  3. GNOME Shell 3.22.0
  4. Nautilus
  5. Python 2.7.12+

I've the same problem as dondurito until I restart "nautilus -q" and delete all files in ~/.cache/thumbnails.

Thank you marianosimone for this nice program!

marianosimone commented 7 years ago

Thanks for the comment, @passerbyGitHub!

@dondurito can you confirm if any of that helps?

dondurito commented 7 years ago

thanks for the suggestion @passerbyGitHub - did that but no change. Still no covers shown and no thumbnails created in ~/.cache/thumbnails

I think I will try to set up Ubuntu 16.04 and Ubuntu Gnome in a VirtualMachine and try the script on a fresh install. Maybe I screwed something up when setting my system.

Update: Tried in my Ubuntu Gnome 16.04 VM - works! So it can't be an error in your script. Will try on to find out what is wrong with my system.

Update 2: python-imaging was not installed on my system - wonder why thumbnailer installation gave no error. Reinstalled python, python-imaging and thumbnailer. Unfortunately still not working, but nautilus gives me these error messages now: (nautilus:11159): GnomeDesktop-WARNING **: Unable to create loader for mime type application/epub+zip: Unrecognized image file format (nautilus:6862): GnomeDesktop-WARNING **: Error creating thumbnail for file:///media/path/to/my/eBooks/A/Azzeddine,%20Saphia%20-%20Zorngebete.epub: Unrecognized image file format

marianosimone commented 7 years ago

@dondurito Thanks for the follow up!

I'll take a look at why the installation didn't fail even if you didn't have python-imaging. Good catch!

Now, there's one more thing it would be nice to try, and maybe that would fix the issue for you. Can you try modifying src/epub.thumbnailer, changing Exec=/usr/bin/epub-thumbnailer %i %o %s for Exec=/usr/bin/epub-thumbnailer %u %o %s before installing (or directly in the thumbnailer, where it was installed?

I see a , in the input file name, and that might be causing issues

(BTW: next time, instead of editing your comment, add a new one, so watchers of the topic - including me - get notifications!)

dondurito commented 7 years ago

Hey @marianosimone,

I reinstalled Ubuntu yesterday and your script is working like a charm. Don't know what I messed up at the last installation. Maybe it was the migration of the thumbnails folder from my old system to the new one. I skipped that this time.

Thanks for your help and for your great thumbnailer ... finally it's fun again to browse my ebooks!

marianosimone commented 7 years ago

@dondurito you are welcome, glad to see it's working now 👍