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

emoji-upload: Fix transparency issues on GIF emoji upload. #16456

Closed

Commits on Oct 2, 2020

  1. emoji-upload: Fix transparency issues on GIF emoji upload.

    This preserves the alpha layer on GIF images that need to be resized
    before being uploaded.  Two important changes occur here:
    
    1. The new frame is a *copy* of the original image, which preserves the
       GIF info.
    2. The disposal method of the original GIF is preserved.  This
       essentially determines what state each frame of the GIF starts from
       when it is drawn; see PIL's docs:
       https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#saving
       for more info.
    Cody Piersall committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    47223d1 View commit details
    Browse the repository at this point in the history