Optimize epub file size
Project description
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
epub_optimizer-0.6.0.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epub_optimizer-0.6.0.tar.gz.
File metadata
- Download URL: epub_optimizer-0.6.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20468cdb7098d20823786308ee976da3f16f4bfe2b59cbfa7fb03b102fd3dd8f
|
|
| MD5 |
93f6293ee5997eaba71766e5ae1ddd7f
|
|
| BLAKE2b-256 |
adf717e6c5927b7b2b8ddc269da423b55509357376edb2264b1da5a9384125e8
|
File details
Details for the file epub_optimizer-0.6.0-py3-none-any.whl.
File metadata
- Download URL: epub_optimizer-0.6.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637d7012059830f487e778ae187e32ba1abdb9cf1e965f1d6b97916854471f75
|
|
| MD5 |
de67e72d34cbe06fb17ee00cc93d3f3f
|
|
| BLAKE2b-256 |
ded923a513460eb0354d787dd11d825e341643155fdacf45a90ee7f46509eedd
|