Re: How to create an animated gif?
Re: How to create an animated gif?
- Subject: Re: How to create an animated gif?
- From: Alastair Houghton <email@hidden>
- Date: Wed, 21 Jun 2017 17:56:48 +0100
On 21 Jun 2017, at 16:09, Jens Alfke <email@hidden> wrote:
>
> On Jun 20, 2017, at 11:17 PM, Gerriet M. Denkmann <email@hidden> 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.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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