v4 : Add Full Metadata Parsing for WEBP Animations#3001
Merged
JimBobSquarePants merged 3 commits intomainfrom Oct 23, 2025
Merged
v4 : Add Full Metadata Parsing for WEBP Animations#3001JimBobSquarePants merged 3 commits intomainfrom
JimBobSquarePants merged 3 commits intomainfrom
Conversation
4 tasks
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive metadata parsing support for WebP animated images, addressing issues #2992 and #2988. The changes enable full frame metadata extraction during the Identify operation for animated WebP files, bringing animation metadata handling to parity with full decode operations.
Key Changes:
- Implemented
Identifymethod inWebpAnimationDecoderto extract frame metadata without full image decoding - Enhanced segment integrity handling with configurable validation for EXIF/XMP chunks
- Added resolution metadata extraction from EXIF profiles during WebP decoding
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| WebpDecoderTests.cs | Added test cases to verify frame metadata extraction via Identify for both lossless and lossy animated WebP images |
| WebpImageInfo.cs | Added DataSize property to track encoded image data size |
| WebpDecoderCore.cs | Integrated animation decoder into Identify path and added configurable segment integrity handling |
| WebpChunkParsingUtils.cs | Enhanced optional chunk parsing with EXIF resolution extraction and segment integrity validation |
| WebpAnimationDecoder.cs | Implemented new Identify method and added ReadFrameInfo helper for metadata-only parsing |
| PngFrameMetadata.cs | Fixed documentation error: changed "hundredths" to "seconds" for frame delay description |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Prerequisites
Description
Fixes #2992
Fixes #2988 (I wasn't using up my LFS budget for a separate run)