Skip to content

0.13.0

Choose a tag to compare

@martinbenes1996 martinbenes1996 released this 11 Aug 14:40

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

  • CStruct classes are now enums
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_method and dither_mode are now parameters of writing, and not internal parameters
  • added comp_info into DCTJPEGio envelope with JPEG metadata

Bugfixes

  • Fixed from_spatial dtype 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