Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2012, 06:08 PM   #16
hanktmg
Junior Member
hanktmg began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2012
Device: Nook Simple Touch
Remove files from epub

I know this is a two-year-late response, but I figured I would share my solution to the OP's problem. Simply removing the image tag doesn't remove the images from the epub. To remove all images or any file name/type from epubs (and therefore reducing the file size), you need a bulk file renamer (such as ant renamer), 7zip, and either a Windows OS or knowledge of CLI.
  1. Change the extension of all epub to zip using Ant Renamer or other bulk file renamer.
  2. Run this in command prompt (shift-rightclick in directory of epubs), substituting whats in parenthesis with your own:
    Code:
    for /r %x in (*.zip) do "PATH TO 7ZIP.EXE" d -r "%x" "FILETYPES OR FILENAMES TO REMOVE"
  3. Change the extension of zip files back to epub.
  4. (Optional) Remove the image tags using Calibre.
*Note: *.EXTENSION includes ALL files of that extension, so *.jpg will remove all images and covers within the epub files, but not outside of the epub files. This command will run on all files within the directory, so be sure to backup your library/files before attempting.

An example of the commands I used is:
Code:
for /r %x in (*.zip) do "C:\Program Files\7-Zip\7z.exe" d -r "%x" *.jpg *.png *.jpeg *.gif *.pdf
hanktmg is offline   Reply With Quote
Old 09-28-2013, 05:26 PM   #17
vugtitan
Addict
vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.vugtitan ought to be getting tired of karma fortunes by now.
 
Posts: 277
Karma: 1042776
Join Date: Aug 2010
Device: none
Quote:
Originally Posted by cybmole View Post
is there an option anywhere to strip all images from epub, mobi....

the only place I can find a no images option is in PDF input options.

if I have some other ebook format, which has unwanted images , how can I auto-strip them?
SIMPLE.

VERY SIMPLE.

convert it to a text or rtf.

convert back to epub.

simple.
vugtitan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML + Images = MOBI without Images SunLight Amazon Kindle 5 08-25-2012 02:27 PM
Remove Page Break after Images luthar28 ePub 16 10-15-2010 11:48 AM
Remove Books - Restoring Confirm to remove books Caffey Calibre 6 09-20-2010 09:23 AM
Remove all images and Covers? Pselus Calibre 3 08-27-2010 10:04 AM
RFE: Remove remove tags in bulk edit magphil Calibre 0 08-11-2009 10:37 AM


All times are GMT -4. The time now is 01:58 AM.


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