optiepub

Crates.iooptiepub
lib.rsoptiepub
version0.0.1
sourcesrc
created_at2024-12-08 18:04:51.0135+00
updated_at2024-12-08 18:04:51.0135+00
descriptionA tool for optimizing EPUB files by compressing images and removing unnecessary content
homepage
repositoryhttps://github.com/LunNova/optiepub
max_upload_size
id1476522
size86,827
Luna (LunNova)

documentation

README

OptiEPUB

OptiEPUB is a command-line tool for optimizing EPUB files by LunNova.

Installation

Install OptiEPUB using cargo:

cargo install optiepub

Features

  • Image optimization with content-aware cropping
  • Duplicate and unused asset detection and removal
  • Automatic format conversion for efficiency (e.g., PNG to JPEG if transparency isn't needed)
  • HTML reference updating and EPUB structure preservation
  • Customizable optimization parameters

Usage

optiepub [OPTIONS] <input>

Example:

# Create output.epub from input.epub
# Use quality level 80 for JPEGs
# Resize images over 1200 pixels
optiepub -q 80 -d 1200 input.epub -o output.epub

Run optiepub --help for full option list.

Commit count: 32

cargo fmt