View Single Post
Old 10-20-2020, 03:06 PM   #4
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,590
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by EuroScribe View Post
I am dealing with an epub which is full of junk images (eg. Chapter titles, section breaks etc). Looking at the code using calibre code editor, I can see alt texts have been defined for every image.

For the love of God, how can I get rid of images in an epub and just use the alt texts instead. I prefer to have absolutely plain text in my epub, unless the images are essential or at least high quality (maps, illustration etc). I can not stand superfluous decorative images.

So how do I go about doing it? Any method will do as long as the end result is achieved (epub to epub conversion, epub to docx conversion, modifying epub etc).

Any help please.
I use the crude approach and edit the epub file and manually delete them, one by one. If the html is consistent you might be able to create a regular expression that matches them and replace them with nothing.
hobnail is offline   Reply With Quote