> On 21 Jun 2017, at 23:56, Alastair Houghton <alast...@alastairs-place.net> 
> wrote:
> 
> On 21 Jun 2017, at 16:09, Jens Alfke <j...@mooseyard.com> wrote:
>> 
>> On Jun 20, 2017, at 11:17 PM, Gerriet M. Denkmann <gerri...@icloud.com> 
>> wrote:
>>> 
>>> Assume that I have two NSImages, both with the same size, how can I create 
>>> an animated gif which alternates between these two images?
>> 
>> You might have to use a 3rd party image library to do that; I’ve never heard 
>> of animated-GIF (GIF89) encoding being in Mac frameworks.
> 
> Can’t you use ImageIO to do that?  See
> 
> <https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/ImageIOGuide/ikpg_dest/ikpg_dest.html>
> 
> ImageIO definitely supports GIF, and it also supports multi-image file 
> formats; there’s an example of creating an APNG, but I imagine it’ll work for 
> animated GIF just as well.

I found: 
<https://stackoverflow.com/questions/15584931/creating-an-animated-gif-in-cocoa-defining-frame-type>,
 which is similar to the code example in you cited.

Kind regards,

Gerriet.

_______________________________________________

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