View Single Post
Old 12-14-2020, 03:59 PM   #3
Robert78
Member
Robert78 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: May 2017
Device: none
Quote:
Originally Posted by JSWolf View Post
You do not need step 3.

What I do is delete all HTML I don't want including the ads, internal ToC, previews, copyright notice, list of the authors other books, reviews of the book, and any other rubbish. Then I check the book using Calibre's error check. I delete any unused graphics as reported. Then I remove unused CSS and Lossless compress the graphics. This fixes the steps you left out. Your way you could end up with HTML that's mostly blank because you got rid of the advert graphics. By deleting the entire HTML, you can then get rid of the graphics no longer used and also have a smaller ePub.

As for automating this, there is no way to do that.
Thanks, it's a cleaner process.
But I takes me less than 30 seconds to remove sometimes the same 20 images without inspecting all the html code, sometimes in tens of sub separate html files and the visual effect is perfect. I'm not patient and html code is difficult to read

For optimal result, I'll consider your process.
Robert78 is offline   Reply With Quote