Re: CGImageDestinationSetProperties does not work for animated GIF
Re: CGImageDestinationSetProperties does not work for animated GIF
- Subject: Re: CGImageDestinationSetProperties does not work for animated GIF
- From: Patrick Haruksteiner <email@hidden>
- Date: Tue, 25 Nov 2008 00:51:32 +0100
That was the way I tried it before - like the docs suggested - but it
did not work.
On my search for a solution to this problem I came across this:
http://pojos-devlog.blogspot.com/2005/08/saving-animated-gif-using-
coregraphics.html
I thought that this is the solution to my problem, but it only was
half of it. By wrapping the properties in another dictionary using
kCGImagePropertyGIFDictionary the frame related properties like the
frame delay time for animation worked. But the properties affecting
the whole animated gif, like the loop count did not work. I checked
the resulting file, the frame related properties have been written,
the image related not.
I even tested the code in the given example as it was, but it did not
work for the loop count too.
I'm using 10.4.11 with Xcode 2.4.1 - and I'm wondering that not even
the above mentioned example works...
Could someone test if the example works for him and produces a gif
that has the loop property set?
--
Patrick Haruksteiner
Date: Mon, 24 Nov 2008 18:24:16 +1000
From: Rob Keniger <email@hidden>
Subject: Re: CGImageDestinationSetProperties does not work for
animated GIF
To: Cocoa-dev Mailinglist <email@hidden>
On 24/11/2008, at 6:24 AM, Patrick Haruksteiner wrote:
CGImageDestinationSetProperties(imageDestination,
(CFDictionaryRef)finalGIFImageProperties);
I've never worked with this API before, but what happens if you change
the above line to this?:
CGImageDestinationSetProperties(imageDestination, (CFDictionaryRef)
gifImageProperties);
My reading of the the docs seems to suggest that you would pass the
keys directly rather than wrapping them in another dictionary using
kCGImagePropertyGIFDictionary.
--
Rob Keniger
_______________________________________________
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