02-13-2022, 04:20 AM | #1171 | |
Zealot
Posts: 114
Karma: 2691856
Join Date: Feb 2022
Device: PPW5, Quaderno A4, Supernote A6X, Leaf 2
|
Quote:
Thank you. So I was investigating some more, and found that if I took the immediate epub generated during the coonversion by this plugin, and convert them manually using Kindle Previewer 3 and the plugin CLI, the error still showed up. But surprisingly, the KFX was also generated despite the error. I checked the KFX against the original epub and it seemed that nothing is really missing. |
|
02-13-2022, 07:25 AM | #1172 | |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
If the book is not under copyright you can post it here if you want. Or if you do not want to post it you could email it to me. Last edited by jhowell; 02-13-2022 at 06:52 PM. |
|
Advert | |
|
02-14-2022, 09:39 PM | #1173 | |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
When performing conversion calibre normally replaces the cover image in the book with the one from the calibre library. Sometimes, depending on the HTML coding of the book, this goes wrong and results in the converted book have two cover pages. If the extra leftover cover uses an SVG wrapper around the image then a bug in the Kindle Previewer causes it to emit the image with an incorrect empty mime type. The next release of the KFX Output plugin will check for this condition and fix the mime type in the KFX file produced. |
|
02-15-2022, 08:13 AM | #1174 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Version 1.59.0 - 15 Feb 2022
Detect Kindle Previewer versions up to 3.61.0. Fix the empty mime type for an image sometimes produced by the Kindle Previewer when a book contains a duplicate cover. (Fixes "ERROR: External resource e6 has unknown mime type".) |
02-18-2022, 07:23 AM | #1175 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Amazon has released Kindle Previewer version 3.62.0. It is compatible with the current release of this plugin.
|
Advert | |
|
02-18-2022, 02:15 PM | #1176 |
Guru
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
|
@jhowell: I'm not quite sure who (you or @NiLuJe) and which of the 2 forum topics would be more appropriate person & place to ask for help with trying to troubleshoot a bug regarding KFX files generated with this KFX Output plugin + @NiLuJe's ScreenSaver hack used in "Cover mode" (= "book cover as a screensaver" thing).
The problem: only for KFX books generated via Calibre using KFX Output addon ( = for couple of KFX books downloaded from Kindle Store the correct image is extracted and used as a screensaver by SS hack) the SS hack doesn't pick / extract & use correct image as a screensaver image (the cover image, that was correctly marked as such in input epub file) . Instead it picks a random? (it not using the first or last or Nth file as ordered inside epub's manifest) image contained inside the book file and usually it is quite small, like something used for chapter headings or separators / scene breaks. The sideloaded KFX files were created on Windows 10 x64 (build 21H1) using:
I'm using latest version (v0.25N @r18833 on 2021-Nov-15 @00:37) of ScreenSaver hack from snapshots on a Kindle Paperwhite 3 with firmware version v5.9.7. Just in case here are link for 2 book conversion logs but I doubt they will be of any use since "Show full Kindle Previewer conversion logs" option wasn't selected at the time of those conversions. https://pastebin.com/jK1dLDQJ https://pastebin.com/6bhvfgaf Last edited by shamanNS; 02-21-2022 at 10:07 AM. |
02-19-2022, 08:09 AM | #1177 | |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
|
|
02-20-2022, 07:52 PM | #1178 |
Guru
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
|
I would say that even though many years have passed since 2016. you are still the most knowledgeable person regarding KFX internals and in best position to figure out a simple fix
Could you please try to fix that cover extraction problem? I tried reading screensaver hack source code and comparing its version of kfxmeta.py with version (newer ?) used by ExtractCoverThumbs script and the only semi-useful thing I've managed to check (by pointing the GUI app to folder containing required subfolders, same as on actual Kindle drive: documents & system > thumbnails) is that ExtractCoverThumbs uses correct image to create thumbnail file for the same kfx file created by this Calibre plugin that results in incorrect image extraction by SS hack version and that just adding " 424: b"cover_image" " to SYMBOL_TABLE and using that key instead of 414 (bcRawMedia) doesn't fix the problem but causes "TypeError: Incorrect padding" when script calls " base64.b64decode(data[cover_key])". Last edited by shamanNS; 02-21-2022 at 10:12 AM. |
02-21-2022, 10:23 AM | #1179 | ||
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Quote:
I am not going to undertake that effort since I am not familiar with the Python environment used, do not have any jailbroken devices on which to test the results, and my Kindle already displays cover images for KFX files on the sleep screen. |
||
02-21-2022, 10:48 AM | #1180 |
Guru
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
|
Fair enough.
But as far as "python environment" is concerned both versions of kfxmeta.py run just fine on my Windows PC (when you just call that particular .py file and "feed" it a kfx file and -c argument) and the end result (extracted image) is visible and accessible without the need for a jailbroken Kindle. |
02-21-2022, 11:27 AM | #1181 | |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
|
|
02-21-2022, 05:00 PM | #1182 |
Guru
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
|
Yay, it works
I've managed to edit "extract_cover_thumbs.py" (from "ExtractCoverThumbs" app) code to process only files with .kfx extensions and dump images with correct filename (cover_ASIN.png) to needed location (/mnt/us/linkss/cover_cache) folder and to save them as PNG and resize even smaller cover images to 1072 x 1448. Luckily ScreenSaver hack doesn't redo cover extraction if it finds already cached file for that book. And I've created KUAL extension to run that script |
02-21-2022, 05:25 PM | #1183 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
|
02-22-2022, 06:53 AM | #1184 |
Zealot
Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
|
KFX Output and cover thumbnails
Hi, I used this plug-in to convert some MOBI ebooks to KFX and to send them via USB to my Kindle Paperwhite (fw 5.14.2) . It works very well!! I use also the method 1 described in the first post to send the correct cover thumbnails.
A little suggestion... Is it possible to avoid the step in which I have to eject the device, wait a moment until the cover thumbnail for the book has been replaced by a generic cover and then I have to reconnect the kindle to Calibre in order to fix the cover thumbnail?? A solution could be one in which Calibre:
Stefano Last edited by stefano.sb; 02-22-2022 at 07:52 AM. |
02-22-2022, 07:50 AM | #1185 | |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
|
|
Tags |
kfx, linux, wine |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 551 | 07-18-2023 06:22 AM |
Conversion output plugins? | jgoguen | Development | 14 | 08-10-2013 11:19 AM |
Output file name after conversion | dbellefuil | Calibre | 2 | 06-14-2013 04:40 PM |
catalogue builder output columns are not in the same order in the output | KWhytte | Library Management | 5 | 12-04-2012 02:03 AM |
Conversion output folders | TechieLady | Conversion | 6 | 01-19-2012 02:49 AM |