prensa
The engine behind the prensa CLI:
optimize EPUBs for e-ink readers. It removes embedded fonts, fits images to
the screen in grayscale and rewrites progressive JPEGs as baseline, producing
a smaller, standard EPUB that is easier on small devices.
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.