DevTrends开发者趋势
主题色

simonbure /

presse

Compression, merging and image conversion to PDF in one command-line tool. Benchmarked against ghostscript on the same corpus (~20 docs), compression was 7x faster, and 19% better compression (ghostscript even inflated s…

DT研究与学习DT命令行工具DT终端

关于

Compression, merging and image conversion to PDF in one command-line tool. Benchmarked against ghostscript on the same corpus (~20 docs), compression was 7x faster, and 19% better compression (ghostscript even inflated some already-optimized docs). The compression route extracts images, then lossy-compress them. This yield most of the gains compared to bytes optimization and artifact collection. Presse uses lopdf and image crates. Understanding and handling multiple image color-spaces was the most confusing part for me, starting from almost zero knowledge about Rust (learning project!). CMYK images not yet supported, some malformed PDF don't get properly compressed as well.

收录记录

  1. Show HN

    2026年8月8日 · 1 次收录

讨论这个产品