JPEG maniputation library?

I'm working on a couple of projects that involve manipulating JPEG files "losslessly" (without decoding and reencoding). Specifically, one involves rearranging DCT blocks in the image, and the other involves tweaking the Huffman tables. Before I go too far down the path of extracting the JPEG parser from jpeg-decoder or writing my own basic parser, is there any existing JPEG manipulation library for Rust that I could leverage?

2 Likes

jpeg-decoder is easy to strip down, I've done that once already :slight_smile:

I've got mozjpeg-sys crate that will give you raw libjpeg API, but libjpeg is unpleasant to work with.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.