This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes General Computing and the fly likes Alternative to Animated gif Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Alternative to Animated gif" Watch "Alternative to Animated gif" New topic
Author

Alternative to Animated gif

Adrien Lapointe
Ranch Hand

Joined: Jan 04, 2013
Posts: 150
    
    4

Anybody could suggest an alternative to animated gif? I looked into animated png, but it seems to be only supported by a few browsers.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61448
    
  67

For what purpose? A web page? If so, there's really no alternative besides a real video.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Adrien Lapointe
Ranch Hand

Joined: Jan 04, 2013
Posts: 150
    
    4

right now at the top of permies we have 2 small animated gif. The quality is kind of bad and we would like to have something better.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61448
    
  67

I think you're pretty much stuck with animated gifs; video doesn't really serve the same purpose (and has browser version issues as well).

Maybe you just need better-quality animations rather than a different format?
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

There are two shortcomings of GIF: it can only store 8 bits per pixel, and it cannot be transparent. There isn't any cure for the second one, but the first one can be sometimes improved by using a good dithering algorithm (ie. save it with an app which has a good dithering algorithm).

Are you speaking about the two film strips at the top? The problem probably is that the displayed photos have way different colors, which makes choosing a good-fitting palette of 256 colors problematic. It might be better if you didn't use blending for switching the images, as this creates yet more colors to be encoded.

Given that the GIFs are otherwise pretty static, couldn't the images be just switched by some javascript? If you insist on the blending, this wouldn't work, obviously.
Adrien Lapointe
Ranch Hand

Joined: Jan 04, 2013
Posts: 150
    
    4

I didn't think Jforum would allow the javascript in the announcement. I thought it would only take html.

I am surprised that no other image format for animation has replaced gif. I guess the need was not really there as most people use flash and the like.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Adrien Lapointe wrote:I didn't think Jforum would allow the javascript in the announcement. I thought it would only take html.

That is correct. You could submit an enhancement request to change that of course.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Isn't there an animation-friendly implementation of SVG? I know nothing about browser support but it might be worth investigating...


Steve
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42360
    
  64
I'm not familiar with the applications you would use to create animations, but if it's destined for the web, maybe some of them can export JavaScript that draws on a Canvas? Or which uses a JavaScript animation library, of which there must be many out there by now.


Ping & DNS - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: Alternative to Animated gif