We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Prop: library animated gif > indiv. input strea
Page Index Toggle Pages: 1
Prop: library animated gif > indiv. input strea (Read 453 times)
Prop: library animated gif > indiv. input strea
Dec 30th, 2007, 5:14pm
 
So, as of now the solution for displaying animated gifs is to pre-process and split the gif into ... individual gifs or any other format. It is sensible that processing doesn't handle the animated part of a gif in the simple loadimage, and a "special" loadAnimimage would be overkill.

So, I propose a small library that knows how animated gifs work and returns an array of 1.)InputStreams that can be fed into loadImage(InputStream) to get the individual .gif frames (the inputStream could be in raw bmp format or .gif format) and then also an array (or combined through OOP) of the MS count that each frame should show (I've found many browsers ignore the requested framerate of some gifs...)

Anyway, having real-time animated gif support is a must for people trying to create a "page window" in processing to mimic HTML / WebPage support, and would just in general facilitate animation in processing, where an animated gif can become very compressed by "sharing pixels" between frames.
Re: Prop: library animated gif > indiv. input s
Reply #1 - Jan 3rd, 2008, 3:44pm
 
hi, check out http://processing.org/discourse/yabb_beta/YaBB.cgi?board=LibraryProblems;action=display;num=1199371244
Page Index Toggle Pages: 1