Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 12-08-2014, 12:14 AM   #1
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Book Covers - how generated? where stored?

I'm trying to understand how Kindles handle book covers.

I've found that when I drag-and-drop an AZW3 directly from my computer to Kindle, I get a generic cover on the Kindle homescreen when browsing in cover view. But when I use Calibre to transfer the AZW3 to my Kindle, the appropriate cover appears on the homescreen.

I also understand that page numbers are stored in a totally separate file (apnx).

Is the cover also stored in the apnx file? or another external file? What does Calibre do when it transfers the AZW3 that is different from a straight drag-and-drop?

I am mystified as I've never had this issue with epubs. Thanks for any insights!

Last edited by pssquirrel; 12-08-2014 at 02:37 AM. Reason: clarity
pssquirrel is offline   Reply With Quote
Old 12-08-2014, 01:34 AM   #2
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
Book covers are embedded in the book's file. Calibre knows how to convert and keep the original cover. I don't know where your azw3 files are coming from. If from Amazon, they should have covers.
susan_cassidy is offline   Reply With Quote
Advert
Old 12-08-2014, 02:45 AM   #3
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
I confirmed the book cover is embedded in the AZW3 because I can navigate to it when I open the book. But it doesn't appear on the homescreen in cover view when I transfer the AZW3 via straight drag-and-drop. It only works if I transfer it via Calibre "send to device."

What does Calibre do during the transfer that's different from straight drag-and-drop? Does it add a necessary external file (like the apnx?) that the Kindle needs to generate a cover on the homescreen?

Thank you.
pssquirrel is offline   Reply With Quote
Old 12-08-2014, 04:25 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
On an eInk Kindle, book covers are stored in the hidden /system/thumbnails folder on the Kindle. I. e. if you manually transfer books that have an ASIN, you'll get the generic cover unless you copy the corresponding thumbnail image. (Calibre does this automatically.)

The thumbnail file name must contain the ASIN number. For example:

Code:
thumbnail_B01234567_EBOK_portrait.jpg
Doitsu is offline   Reply With Quote
Old 12-08-2014, 04:26 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
I'd just stick to loading your content with Calibre. Much easier.
HarryT is offline   Reply With Quote
Advert
Old 12-08-2014, 04:36 PM   #6
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Quote:
Originally Posted by Doitsu View Post
On an eInk Kindle, book covers are stored in the hidden /system/thumbnails folder on the Kindle. I. e. if you manually transfer books that have an ASIN, you'll get the generic cover unless you copy the corresponding thumbnail image. (Calibre does this automatically.)
Doitsu! This is exactly what I wanted to learn.

P.S. to HarryT, I know this is impractical and using Calibre is much easier. I just wanted to understand how the Kindle and AZW3 files work.

Last edited by pssquirrel; 12-08-2014 at 04:41 PM. Reason: added P.S.
pssquirrel is offline   Reply With Quote
Old 12-09-2014, 10:11 AM   #7
Anthem
Guru
Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.Anthem ought to be getting tired of karma fortunes by now.
 
Anthem's Avatar
 
Posts: 704
Karma: 1622328
Join Date: Dec 2010
Location: USA
Device: Kindle Oasis, OnePlus Nord
Quote:
Originally Posted by pssquirrel View Post
just wanted to understand how the Kindle and AZW3 files work.
Nothing wrong with that! I find myself digging around through things like that as well just to see how it is all bolted together.
Anthem is offline   Reply With Quote
Old 12-11-2014, 04:36 PM   #8
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Yes! I've learned a lot taking apart epubs. Was hoping to do the same with azw3 now that I have a Kindle, but I'm finding azw3 less accessible, harder to understand
pssquirrel is offline   Reply With Quote
Old 12-11-2014, 05:47 PM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by pssquirrel View Post
Yes! I've learned a lot taking apart epubs. Was hoping to do the same with azw3 now that I have a Kindle, but I'm finding azw3 less accessible, harder to understand
Have you already checked out KindleUnpack or the KindleUnpack Calibre plugin?

There's also an experimental Sigil epub plugin, that will import azw3 files on the fly (KindleImport) and a plugin that will generate a new azw3 file from an ePub (KindleGen).

BTW, azw3 files support pretty much all epub features and even some features that regular epubs don't support.
Doitsu is offline   Reply With Quote
Old 12-12-2014, 11:53 AM   #10
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Thanks for all the links, Doitsu! I've played around with converting epub to azw3 using Kindle Previewer, and I've exploded a few azw3s with the KindleUnpack Calibre plug-in. I was happy to find that I recognized all the parts of an exploded azw3. I'll check out the Sigil plug-in.

Here's what I'm trying to learn:
  1. I know that epubs are just a collection of text/html files compressed into a slightly modified zip file. I like that you can unzip them using standard/generic software, edit with any text editor, then rezip them. From my understanding, it's a lossless process. This plus the fact that it's an open format appeals to me. When you use KindleUnpack to explode an azw3, are the resulting files lossless? Have they been modified or converted in some way, or were they simply decompressed or unwrapped?

  2. After playing around, I discovered that if I insert a valid ASIN in the opf, then use Calibre's Quality Check to "Fix ASIN for Kindle Fire," I can transfer the file via straight drag-and-drop (no Calibre "send to device") and my Voyage will download a cover image from Amazon's servers. (The ASIN doesn't even have to match the metadata in the opf -- if the book is "Alice in Wonderland" and I input the ASIN for Tom Clancy's latest bestseller, I will get the cover for the Tom Clancy bestseller. Also, simply inserting an ASIN in the opf doesn't work; I have to run "Fix ASIN for Kindle Fire" to get a cover.)

    What I would like to know is, what does "Fix ASIN for Kindle Fire" do? I dug into some other posts that talked about editing CDEContentType and EXTH 113 & 504, but when I looked in the opf and other exploded files, I found nothing like that. Am I guessing correctly that "Fix ASIN for Kindle Fire" edits hidden files or hidden data not accessible in an exploded azw3? Is there a way to "Fix ASIN" manually?

  3. As far as I can tell, KindleGen/KindlePreviewer is a one-way process where you feed data in and an azw3 comes out, yes? You can't use it to open up an azw3 for editing? If you want to edit, you have to go back to the source data, edit that, and then run it through KindleGen/KindlePreviewer to make a new azw3?

Again, I know it's easiest to just use Calibre. I'm asking because I like to understand these things

Thanks everyone for indulging my curiosity!

Last edited by pssquirrel; 12-12-2014 at 11:56 AM.
pssquirrel is offline   Reply With Quote
Old 12-12-2014, 12:48 PM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by pssquirrel View Post
When you use KindleUnpack to explode an azw3, are the resulting files lossless? Have they been modified or converted in some way, or were they simply decompressed or unwrapped?
It's not a lossless process; style names in stylesheets survive, but file names don't. Also some system files are re-created.

Quote:
Originally Posted by pssquirrel View Post
what does "Fix ASIN for Kindle Fire" do?
AFAIK, it manipulates the metadata of a mobi/azw3 file; it adds ASIN numbers and changes the ebook type to EBOK.

Quote:
Originally Posted by pssquirrel View Post
Am I guessing correctly that "Fix ASIN for Kindle Fire" edits hidden files or hidden data not accessible in an exploded azw3?
AFAIK, that's correct. This plugin modifies the binary EXTH metadata of a mobi/azw3 file.

Quote:
Originally Posted by pssquirrel View Post
Is there a way to "Fix ASIN" manually?
You could theoretically use a Python script to manually change/add the ASIN number.

Quote:
Originally Posted by pssquirrel View Post
As far as I can tell, KindleGen/KindlePreviewer is a one-way process where you feed data in and an azw3 comes out, yes? You can't use it to open up an azw3 for editing?
That's correct.

Quote:
Originally Posted by pssquirrel View Post
If you want to edit, you have to go back to the source data, edit that, and then run it through KindleGen/KindlePreviewer to make a new azw3?
That's correct. BTW, KindleGen will generate a hybrid mobi file that contains the old and new formats and the source files by default. (You can generate an AZW3 file directly with Calibre.)
Doitsu is offline   Reply With Quote
Old 12-12-2014, 06:08 PM   #12
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Doitsu! I understand so much better now

(I tried to give you more karma, but MobileRead says I have to spread it around before I can give karma to you again )
pssquirrel is offline   Reply With Quote
Old 12-12-2014, 07:35 PM   #13
DSpider
Evangelist
DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.DSpider ought to be getting tired of karma fortunes by now.
 
DSpider's Avatar
 
Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
How do you find out the ASIN number for an ebook? Search it on Amazon?

And how do you change the home screen covers for PDF files?
DSpider is offline   Reply With Quote
Old 12-12-2014, 08:54 PM   #14
pssquirrel
ebooknut
pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.pssquirrel ought to be getting tired of karma fortunes by now.
 
pssquirrel's Avatar
 
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
Quote:
Originally Posted by DSpider View Post
How do you find out the ASIN number for an ebook? Search it on Amazon?
Yes. It's listed in the Product Details section.

Quote:
And how do you change the home screen covers for PDF files?
Don't know. Sorry.

Last edited by pssquirrel; 12-17-2014 at 04:18 PM.
pssquirrel is offline   Reply With Quote
Old 12-15-2014, 01:19 PM   #15
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Doitsu View Post
It's not a lossless process; style names in stylesheets survive, but file names don't. Also some system files are re-created.
It's only "lossy" in terms of those identifiers, though; nothing is lost in terms of content or formatting. Ie, if you rebuild the book from the unpacked sources, it will be identical in appearance to the original.
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Covers in ePub files generated by Calibre daviddem Calibre 14 06-30-2011 09:18 PM
Is There a Way to Search For Calibre-Generated Covers fedrich519 Library Management 5 04-14-2011 11:24 PM
Custom generated book 'cover' LGN Calibre 0 11-14-2010 12:32 PM
generated covers vs "normal" covers Brandobras Calibre 1 08-23-2010 11:32 AM
Generated covers melz Calibre 5 07-21-2010 05:23 PM


All times are GMT -4. The time now is 05:08 PM.


MobileRead.com is a privately owned, operated and funded community.