Metadata-Version: 2.3
Name: epub-optimizer
Version: 0.5.0
Summary: Optimize epub file size
License: MIT
Author: Balthazar Rouberol
Author-email: br@imap.cc
Requires-Python: >=3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: pillow (>=11.2.1,<12.0.0)
Description-Content-Type: text/markdown

# 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

```console
$ pip install epub-optimizer
```

## Usage

```console
$ 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:
```console
$ 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
```

