Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 06:26 AM   #1
jandamm
Junior Member
jandamm doesn't litterjandamm doesn't litterjandamm doesn't litter
 
Posts: 5
Karma: 240
Join Date: Feb 2026
Device: Tolino Shine 5 -> Kobo Clara BW with KOReader
[Editor Plugin] Remove Unused Images

Remove Unused Images Plugin

Description
The plugin searches for references of all images in any text file (except in opf).
When there are no references in any text file the image will be deleted and removed from the opf.

Some epubs include images which aren't displayed anywhere. This plugin cleans this up.
Also when stripping a book to only its main content this plugin allows you to quickly clean up the images too.

Disclaimer:
I've tested this plugin and haven't found it to remove any referenced images.
You should still keep a backup of the book in case something goes wrong.
This plugin was written by an AI.

Version History & Issues: Github.
Attached Files
File Type: zip remove-unused-images.zip (1.5 KB, 6 views)
jandamm is offline   Reply With Quote
Old Yesterday, 07:11 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,323
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Does this plugin take into account images referenced in the CSS?

How is this any different to Modify ePub's removal of unused images?
JSWolf is offline   Reply With Quote
Advert
Old Yesterday, 11:27 AM   #3
jandamm
Junior Member
jandamm doesn't litterjandamm doesn't litterjandamm doesn't litter
 
Posts: 5
Karma: 240
Join Date: Feb 2026
Device: Tolino Shine 5 -> Kobo Clara BW with KOReader
Yes, it should take css references into account.

Probably no real difference. Didn't know Modify Epub included this functionality.
I didn't find a plugin which did this, asked AI to create one and shared it here.
jandamm is offline   Reply With Quote
Old Yesterday, 05:30 PM   #4
jandamm
Junior Member
jandamm doesn't litterjandamm doesn't litterjandamm doesn't litter
 
Posts: 5
Karma: 240
Join Date: Feb 2026
Device: Tolino Shine 5 -> Kobo Clara BW with KOReader
Just had a look and one difference between Modify EPUBs remove unused images is that it works in the background on multiple files while this plugin is available in the book editor.

Otherwise both plugins did remove the same images in the books I tested.
jandamm is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove unused fonts juliuss KOReader 4 09-03-2022 11:00 AM
Feature Request: Polish Books, Remove Unused Images Jaws Calibre 2 11-13-2020 10:42 PM
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor thiago.eec Development 7 01-09-2019 08:05 PM
Remove unused class attributes phossler Editor 15 01-26-2016 01:06 PM
Remove unused CSS Rules Divingduck Editor 2 06-21-2014 07:51 AM


All times are GMT -4. The time now is 07:21 PM.


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