|
|
#1 |
|
JCL Punch-Card Collector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
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,325
Karma: 62025226
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 orphan), simply go over to the File Browser : images section and delete it: save
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,383
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Modify ePub plugin has "remove unused image files" already.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bug: "Polish books" fails to compress images other than cover | webmaven | Calibre | 2 | 08-19-2017 06:35 AM |
| images import "bulk confirmation" feature request | Olivier_Rebiere | Sigil | 4 | 03-23-2017 09:42 AM |
| Feature request: disabling unused fields | lathom | Library Management | 4 | 12-20-2011 09:02 AM |
| feature request for ebook-convert: fetch remote images | bpeters | Calibre | 1 | 06-16-2010 12:13 PM |
| Feature request: Turn off images in feeds | moriakaice | Calibre | 4 | 02-27-2010 03:18 PM |