Name | epub-optimizer JSON |
Version |
0.6.0
JSON |
| download |
home_page | None |
Summary | Optimize epub file size |
upload_time | 2025-08-07 19:15:29 |
maintainer | None |
docs_url | None |
author | Balthazar Rouberol |
requires_python | >=3.9 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```
Raw data
{
"_id": null,
"home_page": null,
"name": "epub-optimizer",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Balthazar Rouberol",
"author_email": "br@imap.cc",
"download_url": "https://files.pythonhosted.org/packages/ad/f7/17e6c5927b7b2b8ddc269da423b55509357376edb2264b1da5a9384125e8/epub_optimizer-0.6.0.tar.gz",
"platform": null,
"description": "# epub-optimizer\n\nThis CLI will optimize your epub file size, by performing the following operations:\n- converting all PNG images to black and white JPGs\n- removing any un-used fonts\n- running `jpegoptim` on all jpgs, if it is installed and available\n\n## Installation\n\n```console\n$ pip install epub-optimizer\n```\n\n## Usage\n\n```console\n$ epub-optimizer --help\nusage: epub-optimizer [-h] -i INPUT [--verbose] output\n\nOptimize epub file size\n\npositional arguments:\n output The output filepath\n\noptional arguments:\n -h, --help show this help message and exit\n -i INPUT, --input INPUT\n The input filepath\n --verbose\n```\n\nExample:\n```console\n$ epub-optimizer -i ~/Downloads/Oathbringer\\ \\(The\\ Stormlight\\ Archive\\ \\#3\\)\\ -\\ Brandon\\ Sanderson.epub output.epub\nThe EPUB size was optimized from 32 MB to 11 MB\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Optimize epub file size",
"version": "0.6.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ded923a513460eb0354d787dd11d825e341643155fdacf45a90ee7f46509eedd",
"md5": "de67e72d34cbe06fb17ee00cc93d3f3f",
"sha256": "637d7012059830f487e778ae187e32ba1abdb9cf1e965f1d6b97916854471f75"
},
"downloads": -1,
"filename": "epub_optimizer-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "de67e72d34cbe06fb17ee00cc93d3f3f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4867,
"upload_time": "2025-08-07T19:15:28",
"upload_time_iso_8601": "2025-08-07T19:15:28.832759Z",
"url": "https://files.pythonhosted.org/packages/de/d9/23a513460eb0354d787dd11d825e341643155fdacf45a90ee7f46509eedd/epub_optimizer-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "adf717e6c5927b7b2b8ddc269da423b55509357376edb2264b1da5a9384125e8",
"md5": "93f6293ee5997eaba71766e5ae1ddd7f",
"sha256": "20468cdb7098d20823786308ee976da3f16f4bfe2b59cbfa7fb03b102fd3dd8f"
},
"downloads": -1,
"filename": "epub_optimizer-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "93f6293ee5997eaba71766e5ae1ddd7f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 3773,
"upload_time": "2025-08-07T19:15:29",
"upload_time_iso_8601": "2025-08-07T19:15:29.705092Z",
"url": "https://files.pythonhosted.org/packages/ad/f7/17e6c5927b7b2b8ddc269da423b55509357376edb2264b1da5a9384125e8/epub_optimizer-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-07 19:15:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "epub-optimizer"
}