views:

1297

answers:

5

Animated GIFs are awesome. Does anyone know how to create and save them using the technologies available to the iPhone?

A: 

Animated GIFs aren't awesome, they're the past, they're extinct.

Petruza
-1. This is hardly an answer to anything, let alone the question asked. This is an opinion.
Matt Ball
Animated GIFs may be an old technology, but they can still be awesome. Just like the <blink> tag!
wdlindmeier
Oh, please tell me you're joking... http://en.wikipedia.org/wiki/Blink_element#Usability_and_accessibility_issues
Matt Ball
Lots of people, including Apple, still use animated GIFs, or close analogs. That's what the loading spinner on the iPhone is.
Andrew Johnson
A: 

I don't think generating animated GIFs is the type of thing UIKit does. My understanding is that UIKit is a framework for creating user interfaces, whether it's for the iPhone or otherwise.

Straight from the horse's mouth:

The UIKit framework provides the fundamental objects for constructing and managing your application's user interface.

Matt Ball
My error. UIKit isn't a requirement. I'm just looking to create them with anything at my disposal on the iPhone.
wdlindmeier
A: 

There's no built-in way for generating Gifs (animated or otherwise) on the iPhone. However, it's just data, right? There's nothing stopping you (except, uh, patent issues) writing your own generator, but it'll be a lot of work.

I suggest starting here, the Wikipedia page for gif - it gives a basic overview of the file structure. From there, I'm sure you can build your own!

iKenndac
A: 

To make a GIF, you simply need to specify a series of images and then bundle them as a GIF.

There are lots of bits of source code out there in plain C that will convert images to GIFs, and you can use plan C on the iPhone.

Here's some C code to create a rotating image GIF: http://www.catenary.com/howto/rotate.html

In my apps, for displaying GIFs, I use a small library: http://www.stijnspijker.nl/, though there were some leaks in the source code that we had to clean up.

Andrew Johnson
A: 

Try using this C library:

http://www.imagemagick.org/script/index.php

Remember the iPhone is a POSIX-compliant device and C is just a subset of Objective C.

joemoe