ePub Optimizer – an open source tool to compress, clean, and validate ePub files
a year ago
- #EPUB
- #Node.js
- #optimization
- Node.js utility for optimizing EPUB files by compressing HTML, CSS, images, and recompressing the archive.
- Significantly reduces EPUB file sizes while maintaining e-reader compatibility and EPUB specification compliance.
- Workflow includes writing in Pages on Mac, exporting as EPUB, and optimizing with the script.
- Features include HTML/XHTML minification, CSS optimization, image compression, and font subsetting.
- Supports modular fix scripts for EPUB and OPF structure customization.
- Requires Node.js 14+, Java Runtime Environment (JRE) 1.7+, and pnpm for package management.
- Includes comprehensive test suite, linting, formatting, and minification processes.
- Command-line interface with customizable options for optimization.
- Project structure is well-organized with clear separation of source, scripts, and utilities.
- Licensed under MIT License.