Skip to content

Correct GIF bypass rationale in DocImage and ImageGallery comments#419

Merged
vvlladd28 merged 1 commit into
mainfrom
fix/gif-bypass-comment-rationale
May 25, 2026
Merged

Correct GIF bypass rationale in DocImage and ImageGallery comments#419
vvlladd28 merged 1 commit into
mainfrom
fix/gif-bypass-comment-rationale

Conversation

@vvlladd28
Copy link
Copy Markdown
Member

Summary

Follow-up to #417. The comments justified the GIF bypass with "WebP re-encode drops animation frames", but verifying against dist/ shows Astro's Sharp pipeline already passes animated GIFs through unchanged (output is byte-identical to source, all frames preserved). The real failure mode that #417 fixed is Sharp reading every frame (pages: -1) and tripping limitInputPixels on large multi-frame GIFs — comments now reflect that.

No behavior change.

Astro's Sharp pipeline already preserves animated GIFs (passes them
through as .gif on disk). The real failure mode is Sharp reading every
frame (`pages: -1`) and tripping `limitInputPixels` on large multi-frame
GIFs — that is why we bypass `getImage` for `.gif` files.
@vvlladd28 vvlladd28 merged commit 9eb8c8f into main May 25, 2026
4 of 5 checks passed
@vvlladd28 vvlladd28 deleted the fix/gif-bypass-comment-rationale branch May 25, 2026 17:32
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.

1 participant