You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[canvaskit] Determine if image is animated by reading its header and use Skia to decode in that case #151911
Once flutter-team-archive/engine#53201 lands, the CanvasKit backend will use <img> tags to decode images in many cases. However, we cannot use <img> to decode animated images and get single frames out, so we must use Skia to decode those images. However, we don't actually determine if the images are animated before defaulting to Skia decoding, we conservatively assume all GIF and WebP images are animated.
Proposal
Determine if the image is actually animated by reading the headers and determining that way. Only use Skia to decode if the image is actually animated, otherwise use <img>.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Refactor detectContentType to prepare for animation detection (#54127)
enumify ImageType and ImageFileSignature (#54131)
[canvaskit] Detect animated WebP images (#54418)
[canvaskit] Add animation detection for GIFs (flutter-team-archive#54483
github-actions commentedon Aug 28, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[canvaskit] Add animation detection for GIFs (flutter-team-archive/en…