News for hackers. Stuff that matters.
Re:What's In A GIF by retube on Thursday November 24, 2011 @05:03AM (#3273850)
Well gifs still have two main use-cases:

- with the rise of AJAX a gif is basically the default format for the animated "loading" spinners

- crappy low-res instant versions of youtube videos

Is there an alternative format?

Re:What's In A GIF by wladimir on Thursday November 24, 2011 @05:22AM (#3273886)
(1) is indeed a use-case, unless you require more detailed control over playback/pause/frame numbers. In which case a series of png images (for example, encoded into a .css) and animated using javascript could be used. Google uses this for their doodles.

I think (2) is not really a good use-case. GIF is a terrible, terrible format for movies because of the crappy quality and inefficient interframe encoding. Just use a movie format, they're also good at low-res low-bitstream.

Re:What's In A GIF by AndrewDucker on Thursday November 24, 2011 @05:45AM (#3273922)
Using a movie format means that you either have to provide multiple versions for different browsers or you have to use Flash.

For a four-second clip of a man being hit in the face with a cat I'm not sure either of those is worthwhile.

Re:What's In A GIF by wlievens on Thursday November 24, 2011 @07:02AM (#3274069)
I'd think CSS sprited PNGs are much preferred over anigif, not just because of playback control but also because of non-shitty translucency.
Re:What's In A GIF by satori99 on Thursday November 24, 2011 @05:15PM (#3275548)
(2) is used alot by porn sites (So i hear).

Mouse hovers show an animated GIF representation of the 'film' as a preview.

Re:What's In A GIF by icebraining on Thursday November 24, 2011 @06:38AM (#3274022)
There are decent (and scalable!) spinners in CSS, but it's not an alternative since not every browser supports them.
Re:What's In A GIF by ahrjay on Thursday November 24, 2011 @03:35PM (#3275350)
Firefox and Opera support the APNG format and there is a clever polyfill[1] to add support to all other browsers.

[1] https://github.com/devongovett/png.js

Re:What's In A GIF by flomo on Friday November 25, 2011 @04:11AM (#3276638)
Beyond AJAX spinners, there's still plenty of use cases for simple & easily embedable animations. Smilies, forum avatars, icons, etc.