View Single Post
Old 07-06-2022, 04:31 PM   #6
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,804
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by RelevantBox View Post
The only way I know how to extract images from an EPUB is to convert to HTMLZ, and unzip it, but the names of the image files do no correspond to the image references in the converted MD file.

So the .md file might reference ![](000018.png), but this actually corresponds to image 000022.png in the HTMLZ/images folder.

Is there a different process I should be using to extract the images which will give me the correct file names to correlate with the MD output?
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.
j.p.s is offline   Reply With Quote