Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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: 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?
Jaws is offline   Reply With Quote
Old 11-13-2020, 03:35 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
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 orphan), simply go over to the File Browser : images section and delete it: save
theducks is offline   Reply With Quote
Advert
Old 11-13-2020, 10:42 PM   #3
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Modify ePub plugin has "remove unused image files" already.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:53 AM.


MobileRead.com is a privately owned, operated and funded community.