Repository navigation
GIF: compress changed-frame rectangles with disposal-safe deltas (TDD + Pillow) - #32
Merged
Merged
Conversation
…s and compressed size
…nt deltas; verify against Pillow
…60-frame recordings
mikasoukhov
marked this pull request as ready for review
October 10, 2026 23:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GIF delta-frame compression on fresh master
Base:
master@a67e45929dc5fbd53b7a25f68bd81f39ccdce4e4. New branch:fix/gif-delta-frames-20261011. Exactly three commits: tests (RED), implementation, documentation/Pillow validation.Fix
GifCodec.Encodelooks ahead at one decoded frame (streaming, not materializing all frames).TDD
3d164340: 4 expected GIF delta test failures on both .NET 6 and .NET 10.Reencoded_MoreColorsThanATableHolds_StayCloseToTheSourceupdated to compare composed frames instead of assuming a full-screen raw block.Benchmarks and scope
Pillow-confirmed intermediate examples: 4-frame 198→161 bytes, 3-frame 1021→818 bytes. The two local, unpushed originals mentioned in the report (423086 and 143274 bytes) are not accessible here, so their target sizes cannot be claimed without those exact fixtures. No changes to JPEG, PNG, color profiles or unrelated encoders.
All changes are restricted to the new branch until CI checks pass; merge into master via squash to keep master history to one commit.