Re: How to create an animated gif?

2017-06-22 Thread Gerriet M. Denkmann

> On 21 Jun 2017, at 23:56, Alastair Houghton  
> wrote:
> 
> On 21 Jun 2017, at 16:09, Jens Alfke  wrote:
>> 
>> On Jun 20, 2017, at 11:17 PM, Gerriet M. Denkmann  
>> 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
> 
> 
> 
> 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: 
,
 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


Re: How to create an animated gif?

2017-06-21 Thread Alex Zavatone
Here’s one option.  Imagemagick.

https://www.imagemagick.org/Usage/anim_basics/



> On Jun 21, 2017, at 1:17 AM, Gerriet M. Denkmann  wrote:
> 
> macOS 12.5
> 
> Assume that I have two NSImages, both with the same size, how can I create an 
> animated gif which alternates between these two images?
> 
> 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/zav%40mac.com
> 
> This email sent to z...@mac.com

___

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


Re: How to create an animated gif?

2017-06-21 Thread Alastair Houghton
On 21 Jun 2017, at 16:09, Jens Alfke  wrote:
> 
> On Jun 20, 2017, at 11:17 PM, Gerriet M. Denkmann  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



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 (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


Re: How to create an animated gif?

2017-06-21 Thread Jens Alfke

> On Jun 20, 2017, at 11:17 PM, Gerriet M. Denkmann  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.

—Jens

___

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