Warning
Moved to https://git.balthazar-rouberol.com/brouberol/epub-optimizer
This CLI will optimize your epub file size, by performing the following operations:
- converting all PNG images to black and white JPGs
- removing any un-used fonts
- running
jpegoptimon all jpgs, if it is installed and available
$ pip install epub-optimizer$ epub-optimizer --help
usage: epub-optimizer [-h] -i INPUT [--verbose] output
Optimize epub file size
positional arguments:
output The output filepath
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
The input filepath
--verboseExample:
$ epub-optimizer -i ~/Downloads/Oathbringer\ \(The\ Stormlight\ Archive\ \#3\)\ -\ Brandon\ Sanderson.epub output.epub
The EPUB size was optimized from 32 MB to 11 MB