• 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
Is disabling global colormap for animated gif ignored?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is disabling global colormap for animated gif ignored?


  • Subject: Is disabling global colormap for animated gif ignored?
  • From: Patrick Haruksteiner <email@hidden>
  • Date: Thu, 8 Jan 2009 17:31:26 +0100


Hello,

I'm trying to export an animation as animated gif. Adding all frames to the gif, setting loop count and writing the file works fine. But my choice if the gif should have a global colormap or not is ignored.

here the code I tried:

NSMutableDictionary *gifImageProperties = [[NSMutableDictionary dictionaryWithCapacity:2] retain];

//loop animation, 0 = indefinitly
[gifImageProperties setObject:[NSNumber numberWithFloat:0] forKey: (NSString *)kCGImagePropertyGIFLoopCount];


[gifImageProperties setObject:[NSNumber numberWithBool:useGlobalColormap] forKey:(NSString *)kCGImagePropertyGIFHasGlobalColorMap];

NSDictionary *finalGIFImageProperties = [NSDictionary dictionaryWithObject:gifImageProperties forKey:(NSString *) kCGImagePropertyGIFDictionary];

... my image creation code here ...

//set properties
CGImageDestinationSetProperties(imageDestination, (CFDictionaryRef)finalGIFImageProperties);



Am I setting something wrong for kCGImagePropertyGIFHasGlobalColorMap? This stuff is not quite well documented...
For kCGImagePropertyGIFLoopCount everything works fine - even for other loop counts.


Any clues?

thanks,
    Patrick
_______________________________________________

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


  • Prev by Date: Re: Can I call unbind: in finalize? Is it thread safe?
  • Next by Date: Re: NSOutlineView indentation
  • Previous by thread: Re: [iPhone] [SOLVED] Update table cell text on selection in other view
  • Next by thread: Mail Activity sliding widget question
  • Index(es):
    • Date
    • Thread