• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Alternative to Animated gif

 
Ranch Hand
Posts: 346
10
Eclipse IDE Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anybody could suggest an alternative to animated gif? I looked into animated png, but it seems to be only supported by a few browsers.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For what purpose? A web page? If so, there's really no alternative besides a real video.
 
Adrien Lapointe
Ranch Hand
Posts: 346
10
Eclipse IDE Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 346
10
Eclipse IDE Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author & internet detective
Posts: 42003
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Isn't there an animation-friendly implementation of SVG? I know nothing about browser support but it might be worth investigating...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Then YOU must do the pig's work! Read this tiny ad. READ IT!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic