Skip to main content

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

Metadata

Release files for epub-optimizer 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epub-optimizer 0.6.0
File Size Uploaded
epub_optimizer-0.6.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for epub-optimizer 0.6.0
File Interpreter ABI Platform
epub_optimizer-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / epub_optimizer-0.6.0.tar.gz

Download URL epub_optimizer-0.6.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
20468cdb7098d20823786308ee976da3f16f4bfe2b59cbfa7fb03b102fd3dd8f
BLAKE2b-256 checksum
How to use checksums
adf717e6c5927b7b2b8ddc269da423b55509357376edb2264b1da5a9384125e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0

Release files / epub_optimizer-0.6.0-py3-none-any.whl

Download URL epub_optimizer-0.6.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
637d7012059830f487e778ae187e32ba1abdb9cf1e965f1d6b97916854471f75
BLAKE2b-256 checksum
How to use checksums
ded923a513460eb0354d787dd11d825e341643155fdacf45a90ee7f46509eedd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page