prensa
The engine behind the prensa CLI:
optimize EPUBs for e-ink readers. It removes embedded fonts, fits images to
the screen in grayscale, rewrites progressive JPEGs as baseline and converts
images the reader cannot show (WebP, BMP, images embedded in chapters),
producing a smaller, standard EPUB that is easier on small devices. Wide
diagrams can optionally be turned to fill the screen's height.
Defaults are tuned on an Xteink X4 Pro running the CrossPoint firmware. See the repository for before/after photos and details.
use File;
optimize works on any Read + Seek input and Write + Seek output, never
prints and returns a Report. Use optimize_with_progress to drive a
progress bar.