BookBrowser icon indicating copy to clipboard operation
BookBrowser copied to clipboard

Support extracting cover from guide

Open Carmina16 opened this issue 7 years ago • 4 comments

This file doesn't get its cover extracted:

coversample.epub.zip

Carmina16 avatar Dec 09 '17 17:12 Carmina16

Thanks for reporting this issue. I'll look into it now.

pgaskin avatar Dec 09 '17 20:12 pgaskin

OK. It seems like this is a problem with your epub file.


In content.opf line 10, the cover is defined as referencing the file with the id item2.

<meta name="cover" content="item2" />

In line 32, the file has the id cover.jpg, not item2.

<item href="Images/cover.jpg" id="cover.jpg" media-type="image/jpeg" />

This means that your epub is not referencing the cover correctly. Your epub can be fixed by changing line 32 to:

<item href="Images/cover.jpg" id="item2" media-type="image/jpeg" />

That should make BookBrowser pick up the cover correctly. Please tell me if it fixes your issue.

pgaskin avatar Dec 09 '17 21:12 pgaskin

The cover image is defined in <guide> and is extracted by every reader I have.

The BookBrowser should do the same, I believe.

Carmina16 avatar Dec 10 '17 01:12 Carmina16

@Carmina16 OK, I see. I'll work on that soon.

pgaskin avatar Dec 11 '17 23:12 pgaskin