View Single Post
Old 02-21-2022, 10:23 AM   #1179
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,118
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by shamanNS View Post
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
ExtractCoverThumbs uses a newer and more functional version of the kfxmeta.py script. It is able to locate the cover image within a KFX file containing multiple images. It is not 100% correct but far better than the older version that the SS hack uses.

Quote:
Originally Posted by shamanNS View Post
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])".
The version of kfxmeta used in the screensaver hack was changed quite a lot from what I originally produced. I assume that was done for compatibility with the Kindle environment. Updating it to use the logic from ExtractCoverThumbs will take a lot more than a simple cut and paste. There were a LOT of changes added in the version used by ExtractCoverThumbs in order to make extraction of the correct image happen.

Quote:
Originally Posted by shamanNS View Post
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 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.
jhowell is online now   Reply With Quote