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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to