0.13.0
What is new?
(compared to 0.12.0)
- Integrated operations with Huffman table
jpeg = jpeglib.read_dct('cover.jpeg')
jpeg.huffmans-
Removed unrolling of quantization table, standard JPEG has now 2 QTs
-
Added mozjpeg flags
im.write_spatial('out.jpeg', flags=['+TRELLIS_QUANT', '+TRELLIS_QUANT_DC'])(compared to 0.12.1+)
- Integrated operations with scan script and progressive JPEG
im = jpeglib.read_spatial('cover.jpeg', buffered=True)
im.scans- unittests on Windows separated from Linux
Improvements
CStructclasses are nowenums
im = jpeglib.read_spatial("cover.jpeg", jpeglib.Colorspace.JCS_YCbCr)- The enum values are also added to the global level
im = jpeglib.read_spatial("cover.jpeg", jpeglib.JCS_YCbCr)dct_methodanddither_modeare now parameters of writing, and not internal parameters- added
comp_infointoDCTJPEGioenvelope with JPEG metadata
Bugfixes
- Fixed
from_spatialdtype conversion - Fixed custom QT sigsegv occurring in libjpeg 9d+
- Fixed inference of grayscale JPEG
quant_tbl_no - Fixed inference of sampling factor (incorrect rounding)
- Sanitized invalid QF values, clipping and warning now