View Single Post
Old 06-29-2017, 11:48 PM   #14
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Two ways that come to mind:

1) Use regex to change all of the absolute paths in the original html to relative paths, import the html and images into Sigil in one go (Add Existing) ... save the epub.

2) Add the original html to Sigil. Add all of the original images to Sigil. Use regex to modify all the absolute paths in the html to the relative path that Sigil expects ...save the epub.

Can I ask why the image links in the html use absolute file:/// urls for the src attributes in the first place? It's not a very common practice. Relative paths make everything very portable and easily/quickly relocatable.
DiapDealer is offline   Reply With Quote