Add IsAnimated property (alternatively: FrameCount) to ImageInfo #2777
-
This would make special handling of animated images (e.g., to skip processing them) trivial. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I wrote some code for this: https://iceshrimp.dev/iceshrimp/ImageSharp/commit/7ab7ff4b6a74acd4f32381d93d1e8e5159a3f6dc Happy to submit a PR if wanted. |
Beta Was this translation helpful? Give feedback.
-
Hi @zotanmew Thanks for the suggestion but unfortunately the presence of multiple frames does not automatically mean that the image is animated. Container formats like Tiff for example can have multiple frames. |
Beta Was this translation helpful? Give feedback.
-
@JimBobSquarePants How about |
Beta Was this translation helpful? Give feedback.
V4 will contain an explicit
FrameCount
property onImageInfo
as part of #2751