peterc/pure_jpeg: Pure Ruby JPEG encoder and decoder with no native dependencies
13-Mar-2026 279
Convert PNG or other pixel data to JPEG. Or the other way! Implements baseline JPEG encoding (DCT, Huffman, 4:2:0 chroma subsampling) and decodes both baseline and progressive JPEGs. Exposes a variety of encoding options to adjust parts of the JPEG pipeline not normally available (I needed this to recreate the JPEG compression styles of older digital cameras - don't ask..)
It works on CRuby 3.0+, TruffleRuby 33.0, and JRuby 10.0.