GIF frame duration
GIF frame duration
- Subject: GIF frame duration
- From: Andreas Mayer <email@hidden>
- Date: Tue, 25 Mar 2014 16:58:41 +0100
I'm working with GIF animations.
To find out the delay between frames, there's NSBitmap's -valueForProperty: with a value of NSImageCurrentFrameDuration.
I.e. [bitmap valueForProperty:NSImageCurrentFrameDuration] should report the delay time for the current frame.
Now what I'm seeing is AppKit reporting a frame delay of 0.1 s for any value below 0.6 s.
This will result in many GIFs running slower than intended.
Questions:
1. Can anyone confirm this?
2. Does someone know a way to fix it? Maybe there's some threshold setting?
I worked around this problem by parsing the GIF on my own. But I'd rather not. :-/
(For reference, Safari and Quicklook seem to use a threshold setting of 0.2 s.
Only animations with a frame delay of 0.01 or zero will run with a delay of 0.1.)
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden