SixLabors / ImageSharp

:camera: A modern, cross-platform, 2D Graphics library for .NET
https://sixlabors.com/products/imagesharp/
Other
7.34k stars 847 forks source link

Fix handling gif encoding for global palettes. #2614

Closed JimBobSquarePants closed 9 months ago

JimBobSquarePants commented 9 months ago

Prerequisites

Description

See https://github.com/SixLabors/ImageSharp.Web/issues/344#issuecomment-1849642440

When an input gif has a full, non-transparent global palette we should use own to allow deduplication. Same image is reduced by 26% on encode.