Re: image-gif
- From: Alexandre Ferrieux <alexandre.ferrieux@xxxxxxxxx>
- Date: 31 May 2007 12:41:25 -0700
On May 31, 8:15 pm, Jeff Hobbs <j...@xxxxxxxxxxxxxxx> wrote:
iu2 wrote:
I'm trying to animate a gif image using
$my_pic config -format "gif -index $index"
It works ok, but some gifs show up strange. I guess it's because the
frames are represented as differences from previous frames. How can I
treat handle gifs?
That is correct in how GIF transitions are handled, but if you start
from 0 and go up in sequential order, Tk should handle the drawing
correctly. Can you specify what you mean by "strange"?
Check for yourself with for example:
http://www.gifs.net/Animation11/Webdesign_Elements/Random_Shapes/Cube_flies.gif
When loaded with [image create photo -file $fn], if you
image1 config -format gif
it is OK, but if you
image1 config -format "gif -index $index"
even with values in increasing order 0,1,2,... you'll see corners of
the previous frame "not refreshed" around the new one (which gets
smaller in this specific example). This happens regardless of the
rendering widget(s). I put it in both a label and a canvas, and the
"shattered" image appears and updates in both places. So this really
happens in the in-memory image, it's not a rendering problem. Sounds
like a bug of the assumption made by the gif decoder about what's
already in the buffer.
-Alex
.
- References:
- image-gif
- From: iu2
- Re: image-gif
- From: Jeff Hobbs
- image-gif
- Prev by Date: Re: ?? exec prog << value ??
- Next by Date: Re: ?? exec prog << value ??
- Previous by thread: Re: image-gif
- Next by thread: Error shutting down TCL
- Index(es):
Relevant Pages
|