Re: image-gif



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

.



Relevant Pages

  • Re: GIF encoding
    ... the Japanese counterpart patents expired on June 20, ... the GIF format may now be used freely. ... first frame and thus when adding the additional frames its not able to ... I have an animated gif. ...
    (comp.lang.java.programmer)
  • Re: Need some help with animation
    ... >> a) you load only FIRST frame from your GIF, try to use ImageIO to get ... > an animated GIF so it contains all the frames. ... Yes, file contains all frames, but java picks only the first of them. ... >> b) use MemoryImageSource to create animation. ...
    (comp.lang.java.gui)
  • Re: Question about spam
    ... nothing more than a random scattering of short threads or dust ... It is an 'animated' gif intended to defeat some image conversion ... frames, you will see that one or so frames is the random scattering of ... minimal short threads or dust [which also serves to be a variable to ...
    (alt.privacy)
  • Re: Custom emoticons - animated GIFs - not valid image file error
    ... gifs from 'animating'. ... When I try to add a custom animated GIF emoticon, ... with others it misses 80% of the frames and only plays the ...
    (microsoft.public.windowsxp.messenger)