View Single Post
Old 03-23-2013, 03:56 AM   #1
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
New ePubs have no covers in Calibre

Hi folks,

I've got a number of epubs added to Calibre from various sources (Kobo, Overdrive, darknet) that Calibre doesn't find the cover for. These almost always have a cover (usually called "cover.jpg"!).

I would have guessed the problem was in content.opf but here are two examples that are reasonably similar. On a book with no cover, the relevant parts of content.opf that mention "cover" are:

Code:
  <metadata ...
    ...
    <meta content="cover.jpg" name="cover" />
    ...
  <manifest>
    ...
    <item href="Images/cover.jpg" id="cover.jpg" media-type="image/jpeg" />
and an epub with a cover is quite similar:

Code:
  <metadata 
    ...
    <meta content="cover" name="cover" />
    ...
  <manifest>
    <item href="Images/cover.jpeg" id="cover" media-type="image/jpeg" />
I've left out references to cover.html or cover.xml.

I also have some epubs that don't have the meta content part, and only seem to have a cover.html (and related jpeg).

Any suggestions why Calibre isn't finding covers? A search of mobileread didn't turn up anything useful.

For a bonus, is there an easy way go assign "cover.jpg" or "cover.jpeg" from an existing epub as the cover. I've got a number of books I want to do this for, and manually exploding the epub to extract the cover is a bit tedious.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote