Unfortunately 16-bit quantization tables in 8-bit files are a de-facto standard: https://github.com/libjpeg-turbo/libjpeg-turbo/pull/90 This image:  trips the assertion in: https://github.com/martinhath/jpeg-rust/blob/24655eda0b8169796f214a975168fd4eadff8730/src/jpeg/jpeg.rs#L231