View Single Post
Old 06-28-2023, 07:04 AM   #4
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
You need a combination of two plugins:
To remove images from epub files in mass:
  • In Editor Chains plugin, you create a chain (call it Remove Images) that contains "Remove Files" action. You can configure this action to delete files by extension (it support regex filters), so if you want to delete images you can put the following in the action configuration:
    Code:
    .+\.jpe?g$, .+\.png$
    You can add any other image extensions you want.
  • The previous step will enable you to delete images by invoking the chain from calibre editor to delete all images in a single epub. If you want to delete from multiple epubs, you have to use Action Chains plugin: Create a chain (call it Batch Remove Images) that contains a "Run Editor Chain" action. In the action's configuration, choose the editor chain you created in the step above. Now you can select multiple books in your calibre library, and delete all images from them by calling the "Batch Remove Images" chain.

Edit:
  • The Action Chains plugin gives you the option to backup the files before it runs the chain. I highly recommend doing this, because you might not like the end result.
  • The steps above will only remove the images from the epub files, it will not remove the code that references them. If you want to do that, there are other actions within the Editor Chains you can add to your chain to achieve this.

Last edited by capink; 06-28-2023 at 07:25 AM.
capink is offline   Reply With Quote