APNG

I received word recently from Brendan Sera-Shriar at Seneca College about this APNG portal site that he, along with folks from PHUG, got off the ground recently.  The site looks great and should help provide a wealth of information about a great new feature in Firefox 3 (and Opera 9.5 and other products to follow…).

They’ve got several cool samples up and I’m sure they’d love to add more if you’ve got them.

We seem to have introduced some flashing bug while the animations load.  I filed bug 413933.  Should get fixed soon I hope!

3d animating dolphin

11 thoughts on “APNG

  1. Toe

    Hm. I get flickering on load from the one on animatedpng.com, but not the one on your site. (Tested by right-click -> View Image, then shift+refresh to make sure it’s not cached.)

    Assuming these are the exact same image, perhaps it’s something to do with the web servers?

    Reply
  2. bharuch

    I don’t get the flickering load on yoursite, feedhouse, or planet; and only on the animatedpng.com site on the cube & monkey occasionally. I’m using FF3b2.

    Reply
  3. Aaron

    With Fx3 2008010104, the first time I viewed the image on your blog, it was rendered incorrectly as you described. The second time (an hour later but still in the same session), it looked fine.

    Reply
  4. Alfred Kayser

    The issue is quite simple: the image loader tries to display partly loaded animation frames (i.e. any frames after the first are displayed even if not completely loaded, but due to the speed of the animation, before it has loaded completely, the next (partial) frame is displayed).

    So the effect only happens during the load of the image, and the load needs to be slower than the animation.

    The fix is simple: don’t do incremental display of animation frames (just wait for the full frame before displaying it). This is also done for GIF animations, and that works for years now.

    See bug 413933 where I will submit a patch this evening.

    Reply
  5. Arthur

    Minefield 2008012404 on Ubuntu Gutsy uses 40% of my CPU (an old Athlon XP 1600+) when the animation is shown, when scrolled offscreen CPU usage goes down to normal. Actually it’s Xorg and Minefield together which use so much CPU and not Minefield alone. That’s pretty hefty for such a simple animation.

    Reply
  6. José Jeria

    Opera 9.5 waits for the frame to be loaded before showing the next one. This results in slow animation while loading, and then faster once all of the frames are loaded.

    Reply
  7. David

    I’m getting high CPU usage when the apng is visible.

    Linux 3ld.sld.edu 2.6.18-53.1.6.el5 #1 SMP Wed Jan 16 03:56:43 EST 2008 i686 i686 i386 GNU/Linux

    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2008012404 Minefield/3.0b3pre ID:2008012404

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s