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

Discover cover image in meta tags #6

Closed optroodt closed 9 years ago

optroodt commented 9 years ago

Hi, I found that not all epubs define the cover by putting 'cover' in the id of an item tag. The thumbailer then just picks an image, which is not the cover. Some define the id of the cover image in a meta tag, the actual cover is then found in an item tag.

marianosimone commented 9 years ago

thanks for your improvement, @optroodt. I'd love to test it out before merging... Do you have any example ePub that I could use?

optroodt commented 9 years ago

You're welcome!

Try this one: http://optroodt.dyndns.org/books/1cca79d65c7e57bdab08c36e2d7c3045bd4b8728.epub

Please let me know when you're done testing so I can remove the file again.