Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Detect animated images by sniffing file headers#2187

Draft
SnowCait wants to merge 2 commits into
mainfrom
claude/nice-hypatia-yv6jd5
Draft

Detect animated images by sniffing file headers#2187
SnowCait wants to merge 2 commits into
mainfrom
claude/nice-hypatia-yv6jd5

Conversation

@SnowCait

Copy link
Copy Markdown
Owner

Extension-based detection froze static GIFs and missed APNG distributed
as .png, animated WebP and animated AVIF. When GIF autoplay is off,
fetch the first 16 KB of the image (falling back to the HTTP proxy when
CORS blocks the read) and inspect the container: NETSCAPE loop
extension or a second image descriptor for GIF, an acTL chunk before
IDAT for PNG, the VP8X animation flag for WebP and the avis brand for
AVIF. Results are cached per URL and fall back to the extension-based
presumption when undeterminable.

claude added 2 commits June 10, 2026 23:07
Extension-based detection froze static GIFs and missed APNG distributed
as .png, animated WebP and animated AVIF. When GIF autoplay is off,
fetch the first 16 KB of the image (falling back to the HTTP proxy when
CORS blocks the read) and inspect the container: NETSCAPE loop
extension or a second image descriptor for GIF, an acTL chunk before
IDAT for PNG, the VP8X animation flag for WebP and the avis brand for
AVIF. Results are cached per URL and fall back to the extension-based
presumption when undeterminable.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
nostter 2d3a478 Jun 10 2026, 11:25 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants