View Single Post
Old 03-05-2015, 11:31 PM   #27
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by rashkae View Post
That made me look at my own book more closely. I'm sorry for getting technical, but the guide section of the opf has no cover defined. Kobo is doing exactly the right thing by taking the first displayed page as the 'cover'. The real question is, why are Calibre and Ibooks able to correctly figure out the real cover. (I guess a file named Cover.html kind of gives it away, but technically, the filename can be arbitrary.)
Yes, for ePub, PDF and MOBI, the Kobo firmware render the first page and use that as the cover. For kepub, the cover image is marked with an attribute in the OPF.

Calibre tries to find an image in the epub. And it makes an educated guess to find an image. There are some attributes in the OPF it uses, then it goes by name. That usually means if there is a "cover.jpg" in the epub, it will probably be used. And if all else fails, it can render the first page and use that. For other formats, it depends. From memory, PDF is the first page but I assume the "Kindle" formats, the image is extracted if possible.
davidfor is offline   Reply With Quote