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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| epub_optimizer-0.6.0.tar.gz | 3.8 kB | Without provenance | Details for epub_optimizer-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epub_optimizer-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for epub_optimizer-0.6.0-py3-none-any.whl |
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
|
Security for epub-optimizer 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.