View Single Post
Old 07-06-2022, 08:07 PM   #7
RelevantBox
Junior Member
RelevantBox began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Kobo Aura One, Kindle Paperwhite 5
Quote:
Originally Posted by j.p.s View Post
Just unzip the EPUB without converting it. All the images will probably be in a directory named Images. Some dim-witted unzipping applications might require that you rename book.epub to book.zip first.
Thanks for the suggestion, but the file names still do not correlate, in either naming convention or order.

In the MD file, the images are of format images/000001.png, images/000002.jpg, etc. In the unzipped EPUB, the images are of the format media/file0.png, media/file1.png, etc, but even then 000001.png from the MD corresponded to file27.png of the EPUB, and 000002.jpg to file5.jpg, so it's not simply a matter of translating the filenames (like an off-by-one), they're all over the place. Also, the EPUB media is in a different order from the HTMLZ images, so now we have 3 formats with 3 completely different, non-deterministic orders.
RelevantBox is offline   Reply With Quote