PDA

View Full Version : PNG-based Animations




steve1717
Jul 3, 2008, 05:21 PM
What do you guys think is the best way to compose an animation made up of frames of PNG files in an iPhone app?

I have tried several approaches:

- creating UIImage objects using both imageNamed: and initWithContentsOfFile: methods and then placing them in a UIImageView in sequence using NSTimer

- putting the UIImage objects into an animated UIImageView

I would like to generate faster animations but the 100k PNG files as frames seem to bog things down. Am I missing a more efficient way of doing this?:confused:



clevin
Jul 3, 2008, 05:30 PM
there is animated PNG semi-standard, APNG, firefox 3 and Opera 9.5 both support it now.

http://upload.wikimedia.org/wikipedia/en/e/ea/Spin_fox.png

if you are using firefox 3 or Opera 9.5, this image should be rotating.

Cabbit
Jul 3, 2008, 05:34 PM
there is animated PNG semi-standard, APNG, firefox 3 and Opera 9.5 both support it now.

http://upload.wikimedia.org/wikipedia/en/e/ea/Spin_fox.png

if you are using firefox 3 or Opera 9.5, this image should be rotating.

that motion looks very fluid, never thought anyone used apng.

steve1717
Jul 3, 2008, 05:42 PM
That is really cool but seemingly not compatible for iPhone apps. Any ideas for creating fluid animations using PNG's on the iPhone?

clevin
Jul 3, 2008, 05:49 PM
that motion looks very fluid, never thought anyone used apng.

PNG group is filled with naysayers, MNG is crappy, APNG is rejected too, currently PNG group has no reasonable animation standard. Its all up to browser developers. Only KHTML supports MNG as of now, in comparison, APNG has largest support currently.

I guess one of the original goal of PNG is to present a "still image"....

ThunderSkunk
Jul 3, 2008, 06:39 PM
http://upload.wikimedia.org/wikipedia/en/e/ea/Spin_fox.png

if you are using firefox 3 or Opera 9.5, this image should be rotating.

Hmmm. I like the sound of a png animation. Full color, transparency, lossless... sounds really nice. Get on the ball, Apple. All I get with safari is a dead squirrel.

clevin
Jul 3, 2008, 06:47 PM
just a mention. there is an addon for firefox 3 to edit APNG

https://addons.mozilla.org/en-US/firefox/addon/5519

louden
Jul 13, 2008, 08:32 AM
What tools do you use to best create icons/png files?

I'm assuming it's Adobe Illustrator, but (I'm a newb at graphics) that application is not very intuitive.

Anybody have good recommendations?