04-09-2011, 01:08 AM | #1 |
Connoisseur
Posts: 80
Karma: 716730
Join Date: Apr 2011
Location: Tokyo
Device: Kindle 3 + Story HD + Kobo Touch
|
Where else can a MOBI file have its cover image?
Hi, MOBI file experts,
I'm having some problems to develop my MobiHandler program. One of them is a cover image. I noticed that my MobiHandler can't show cover images for some particular .azw files bought from amazon.com, while K4PC can on its HOME window. One example of those files is My Blood Approves by Amanda Hocking. I hex-dumped it and manually checked the structure based on the info. on mobileread wiki, but I found nothing unusual; it looks like an ordinary MOBI file with no image files inside. Where else can a MOBI file have its cover image but an image record? One possibility might be the cover image is encrypted, since those books are DRM protected, and their book texts are unreadable on hex dump. Any idea? |
04-09-2011, 10:52 AM | #2 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
I know nothing about Kindle's DRM, and very little about the structore of mobi files, but I do know that if you want to download a DRM-free kindle book from Amazon for comparison, none of the books published by "Twilight Times Books" should have any DRM at Kindle.
(Edited to add: There may be other non-DRM Kindle publishers too, it just happens that this is one I'm sure doesn't add DRM.) Some of them are available for free from time to time, and several are priced at $0.99. so you could experiment without too much cost. Last edited by st_albert; 04-09-2011 at 10:57 AM. |
Advert | |
|
04-09-2011, 03:26 PM | #3 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't know how/where K4PC get its covers when K4PC shows a different image than the one that's part of the mobi. K4PC may be downloading an image based on the ASIN number for all I know.
Mobi's may have a thumbnail cover image in addition to the cover image: 1) The four bytes contained in EXTH Record Type 201 are added to the first image field (offset 108 of the mobi header) to find the cover image's PDB record. 2) The four bytes contained in EXTH Record Type 202 are added to the first image field (offset 108 of the mobi header) to find the thumbnail cover image's PDB record. * But you probably know all that already since you referenced the Mobi Format Wiki here on MR. Last edited by DiapDealer; 04-09-2011 at 03:29 PM. |
04-09-2011, 08:56 PM | #4 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Under Windows XP, K4PC stores cover images in
Code:
C:\Documents and Settings\<UserName>\Local Settings\Application Data\Amazon\Kindle For PC\Cache\covers EDIT: I now think any new covers are downloaded from Amazon servers whenever you open K4PC. I see covers there for ebooks that I have never downloaded to my PC, and the covers downloaded today are for my recent ebook purchases. This probably means that K4PC never looks inside the .azw file for the cover. With this approach it can always show covers for "Archived items" Last edited by wallcraft; 04-09-2011 at 09:11 PM. |
04-11-2011, 08:54 AM | #5 | |
Connoisseur
Posts: 80
Karma: 716730
Join Date: Apr 2011
Location: Tokyo
Device: Kindle 3 + Story HD + Kobo Touch
|
Quote:
Also, I noticed that the file names of .jpg files there are all 32 hexadecimal digits. I guess they are some hash values (MD5?) of something. If there names followed filenames of .azw or ASIN, I could look into the folder for missing cover images... Anyway, thank you for interesting info. |
|
Advert | |
|
04-12-2011, 03:02 PM | #6 |
Wizard
Posts: 1,229
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
|
|
07-13-2013, 02:50 PM | #7 | |
Wizard
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
Quote:
Barry |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto-creation of cover image on .epub to .mobi conversion | december | Calibre | 4 | 02-10-2012 05:31 PM |
Importing .mobi cover image from HTML | wholcomb | Conversion | 2 | 02-17-2011 05:05 PM |
Cover image aspect ratio for mobi | Evildad | Conversion | 4 | 01-27-2011 10:29 PM |
Extracting a cover image from lit file | p3aul | Calibre | 6 | 07-25-2010 04:33 PM |
Setting first HTML file Image as Cover? | phnord | Calibre | 2 | 01-09-2010 03:13 AM |