Hi Peter,
Yes somethign is broken but I am not sure what. The error you are getting means that you are trying to unpack some HDImage and either its name is missing somehow or its imgdest (the path to put the image in) is missing.
If this happens only with KDP Preview, my guess is they have somehow changed things and are only providing HD images which Kindlegen does not.
So here is a workaround just to check. Please try *not* adding the -i switch that turns on using HDImages to replace lower res versions. They will still be unpacked and stored right in the HDImages folder so you won't lose anything.
See if that lets the unpack succeed. If so, KDP may be doing something with CRES sections and High Res images we don't know anything about yet.
Either way, if you can provide a copy of the book to me, I should be able to track down what is going on and get a fixed version to you to test with.
If you want it to be private, simply PM me here with a url to grab it from and I will throw it out once I have figured out why this is happening and how to deal with it without breaking Kindlegen generated files either.
Alternatively, you could try running DumpMobiHeader_v018.py on the book and it may tell us what new sneakiness they are up to?
Place DumpMobiHeader_v018.py on your Desktop right beside the KDP preview. Then open Terminal.app and type the following:
cd
cd Desktop
python ./DumpMobiHeader_v018.py BOOK_FILE_NAME_HERE > header.txt
exit
Then send to me or post the header.txt file and it may tell us something more.
Take care,
KevinH
Quote:
Originally Posted by Peter Ahlstrom
I'm getting a bug in version 75 of the script (OS X version) today, but only on some files. Here's the report:
Judging by that, this may actually be some kind of python 2.7 bug, but I'm not sure... (And none of my images start with "/")
This is on a mobi today that I made by uploading an epub to KDP and downloading the preview file. Doing that and extracting via KindleUnpack v 75 was working earlier today, but some of the html and css coding has changed since then. The current file will unpack using v 64 of the script, but that's of course lacking features like the HD Image stuff. If I run the same epub through kindlegen, the resulting mobi will unpack fine with v 75.
Earlier today I could upload an ePub with image files larger than 127K and KDP would spit out a .mobi with the large files in it—but I had font embedding problems. I've fixed the font embedding problems, but now I can't tell if the large jpegs are still in there, since KindleUnpack is failing.
|