Image frame count #1645
danielebogo
started this conversation in
General
Replies: 4 comments 2 replies
|
Thanks for it. #1647 has been merged and a new version (6.2) was released for this. |
1 reply
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
|
Nice to see #1647 merged successfully. This release could be valuable for projects focused on PDGF receptor data processing and analysis. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
@onevcat Is it possible to store the animated image frame count when an animated image is created?
When
func animatedImage(data: Data, options: ImageCreatingOptions) -> KFCrossPlatformImage?is called, theGIFAnimatedImagehas theimagesarray populated, so it's easy to just store the frame count.If the no
preloadAlloronlyFirstFrameis used, then we can retrieve the same info from theimageSourcewithCGImageSourceGetCount(imageSource).SDWebImage has this value stored in the image and it's retrieved by each decoder.
I can push a PR if necessary.
All reactions