![]() |
#1 |
JCL Punch-Card Collector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
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? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,055
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Do you really want Auto destroy?
Personally, I would use the editor and examine (or run the bug ) and that will allow you to open (look at) the image. If truly unwanted (and not a coding error ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Modify ePub plugin has "remove unused image files" already.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug: "Polish books" fails to compress images other than cover | webmaven | Calibre | 2 | 08-19-2017 05:35 AM |
images import "bulk confirmation" feature request | Olivier_Rebiere | Sigil | 4 | 03-23-2017 08:42 AM |
Feature request: disabling unused fields | lathom | Library Management | 4 | 12-20-2011 08:02 AM |
feature request for ebook-convert: fetch remote images | bpeters | Calibre | 1 | 06-16-2010 11:13 AM |
Feature request: Turn off images in feeds | moriakaice | Calibre | 4 | 02-27-2010 02:18 PM |