Results 1 to 6 of 6

Thread: GIF animation problem

  1. #1

    Default GIF animation problem

    Hi,

    I discovered this problem: when a GIF file contains more frames than one and delay between frames is zero, the picture should be displayed imidietly, but IrfanView does not do so.

    Another problem: when number of replay of picture is zero IrfanView replays again and again. Here are some examples. (this pictures are using frames with custom palete to show more than 256 colors in final picture)

    http://i.iinfo.cz/urs-att/gif2_9-115572840440173.gif
    http://i.iinfo.cz/urs-att/gif2_a-115572847111449.gif
    http://i.iinfo.cz/urs-att/gif2_b-115572849944000.gif
    http://i.iinfo.cz/urs-att/gif2_c-115572856438743.gif
    http://i.iinfo.cz/urs-att/gif2_d-115572862703120.gif
    http://i.iinfo.cz/urs-att/gif2_e-115572866858321.gif

    I know that some pictures are designed to have delay set to zero and viewers use some delay. But in documentation of GIF format is written that viewers should render frames imidietly.

  2. #2
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,036
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    I wonder why you don't use PNG instead?

    IV displays the image a lot faster than either FastStone Image Viewer or Opera. Internet Explorer 7 displays only one frame.

  3. #3
    Moderator Sam_Zen's Avatar
    Join Date
    May 2007
    Location
    NL
    Posts
    1,896
    Version
    IrfanView 4.27
    OS
    Win XP Home SP1
    CPU Cores
    1

    Default

    This is about animated GIFs, so I don't see the link to PNG, at first hand, to be honest.
    I downloaded the files, and they were played fluently, without frame-delay. So it seemed correct.

    Of course the animation is looping, but that's normal, because IV doesn't read the 'number of loops' variable of the GIF.
    (In this case all GIFs are set to 'play loop 1 time'..)

    But there is something peculiar about these files.
    In IrfanView they don't show my default background color for the transparent regions. Some green, some yellow.
    If I stop the animation with "G", so it returns to the first frame, the transparent region is gone, and IV shows just the visual part. In the case of the first GIF, a very tiny bitmap of 1 pixel high.
    Could be caused by having different palettes of each frame.

    Different apps to make the animated GIF can play a role as well. Animation Shop doesn't accept a frame-delay of zero.
    And it produced after an open and save again a file which showed twice as slow in buildup with IV..

    Then a Firefox-test: Same slowness, but the transparency is correct, and it stops after one time.

    A proposal : Let's not use the word 'picture' here, because it can be confusing.
    A total animation can be called like that, but a single frame also.
    0.6180339887
    Rest In Peace, Sam!

  4. #4
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,036
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    Quote Originally Posted by Sam_Zen View Post
    This is about animated GIFs, so I don't see the link to PNG, at first hand, to be honest.
    It is about using animation to simulate more colours. By using a frame gap of zero the idea is to create a static image, not an animation. So why not use PNG?

  5. #5
    Moderator Sam_Zen's Avatar
    Join Date
    May 2007
    Location
    NL
    Posts
    1,896
    Version
    IrfanView 4.27
    OS
    Win XP Home SP1
    CPU Cores
    1

    Default

    I understand.
    0.6180339887
    Rest In Peace, Sam!

  6. #6
    Occasional User
    Join Date
    Dec 2006
    Posts
    113

    Default

    Quote Originally Posted by Bhikkhu Pesala View Post
    It is about using animation to simulate more colours. By using a frame gap of zero the idea is to create a static image, not an animation. So why not use PNG?
    Yeah, this is a relict from the good old times ;-)
    Remember there were Graphic Cards only supporting 256 colors.
    If you switched the images fast enough in the frame gap of the card you could fake more colors because the human eyes are a little bit slow.

    But this never really worked quite good with gif animations.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •