Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables #4989

Merged
merged 7 commits into from Jun 30, 2021
Merged

De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables #4989

merged 7 commits into from Jun 30, 2021

Commits on Oct 17, 2020

  1. De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables

    Re-order the JPEG quantization tables to normal order when
    loading. This wastes a few CPU cycles if you don't need them.
    But it has the advantage of hiding the zigzag order JPEG
    implementation detail of these tables completely from Pillow
    users.
    
    This difference has led to cases where:
    * arrays in zigzag order were taken from a dict and passed
      directly as a qtables parameter, causing them to be "zigzagged"
      again by libjpeg.
    * dicts with lists in normal order being passed to
      JpegImagePlugin.convert_dict_qtables, causing them to be
      unnecessarily "de-zigzagged".
    gofr committed Oct 17, 2020
    Copy the full SHA
    9980981 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    4dc1953 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. Copy the full SHA
    a1d8d63 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Copy the full SHA
    70c7514 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    d11c794 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    afb6ad2 View commit details
    Browse the repository at this point in the history
  4. Documented deprecation

    radarhere committed Jun 30, 2021
    Copy the full SHA
    dfeb49c View commit details
    Browse the repository at this point in the history