• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GIF frame duration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: GIF frame duration
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Creating NSViewController with -init.
  • Next by Date: Re: GIF frame duration
  • Previous by thread: Re: Write with NSFileWrapper vs. copy with NSFileManager
  • Next by thread: Re: GIF frame duration
  • Index(es):
    • Date
    • Thread