
: Re: How can I extract all the pictures from an ebook? I read most of my books in txt format. I use Calibre to convert them to that format. While it works great for books that are mostly text,
You cannot do this in bulk without some programming.
As @Tom indicated, .epub files are ZIP files. The extensions of the "file names" in the ZIP files for images are often, but not guaranteed to be '.jpg,.pngor.gif`. But extracting these using:
unzip abc.epub *.jpg *.png *.gif
will have you miss any that have the extension .jpeg, .JPEG, .Png.
Because of the practically unlimited range of possible extensions for images referred to in the text of your ebook, they can only reliable be identified by one of the following methods:
analysing the (HTML) text
checking the headers of all the files included¹
The analysis being the better tool, as there might be (image) files in a (badly formatted) ebook that are never referenced/displayed². This however requires you to parse the XML/HTML to find the names of the files referenced in the <IMG> tags.
If your ebooks are programmatically generated, they might include (non-necessary) regularities in the image file naming, so that the above unzip command does work for your case. If that is so a simple script walking over your ebook library file structure and unzipping every ebook in an 'Images' subdirectory would suffice.
¹ There are only very, very few filenames pre-specified for .epub. ebooks, so you might as well check all the files.
² I once analysed an .epub, that looked too large for its contents. For some reason it included parts of the Christian mythology texts, which could not be displayed with a normal reader.
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Lorraine

: What can I do about Sigil breaking EPUB3 files Sigil is an EPUB2 editor, but that doesn't prevent people from editing EPUB3 files, which end up with broken OPF when you save them. Sigil development

: How can I use pdftk to make changes to my PDF ebooks? There are answers by asalamon74 (here), and by anthon (here, here and here), that use pdftk. I don't think I have pdftk installed on