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?
|