Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

brouberol/epub-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 jpegoptim on all jpgs, if it is installed and available

Installation

$ pip install epub-optimizer

Usage

$ 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
  --verbose

Example:

$ 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

About

Optimize epub file size

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages