View Single Post
Old 11-13-2020, 12:31 PM   #1
Jaws
JCL Punch-Card Collector
Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 81
Karma: 34468
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
Feature Request: Polish Books, Remove Unused Images

Polish Books is an extremely useful part of Calibre. There's one thing it doesn't do, though: Remove images that aren't referenced anywhere in the epub. It will remove unused CSS rules; it will remove uncalled embedded fonts; but won't do anything about images (especially publisher-inserted ads) that aren't called because, say, I reflexively remove publisher ad pages...

It seems to me that whatever code is used to determine whether a font is ever called, or a CSS rule is ever called, should be relatively easily adaptable to determining whether an image is ever called. (And for older/malformed epubs, the rule can say "always keep cover.jpg and cover.jpeg".)

I've been able to confirm that Polish Books does NOT do this. Am I missing somewhere else that does it, or is this something to consider for future updates?
Jaws is offline   Reply With Quote