Menu

This GIF fails to load

Help
RobertW
2013-04-08
2013-04-30
  • RobertW

    RobertW - 2013-04-08

    I found a GIF which fails to load at all using FreeImage_Load():

    http://heathersanimations.com/cats/kcc1.gif

    FreeImage_Load() just returns NULL when I try to load this GIF.

    Can someone confirm this?

    Thanks,
    Rob.

     
  • Hervé Drolon

    Hervé Drolon - 2013-04-28

    Hi,

    When loading this image, the following message is thrown : "Invalid GIF block found".
    This is because an unknown block is encountered (block with value "0").
    A valid block must be a value into :
    - GIF_BLOCK_IMAGE_DESCRIPTOR = 0x2C
    - GIF_BLOCK_EXTENSION = 0x21
    - GIF_BLOCK_TRAILER = 0x3B

    Hervé

     
  • RobertW

    RobertW - 2013-04-30

    Browsers seem to be fine with the image, so maybe value "0" should be interpreted in some particular way, even if it's not strictly correct. I think if browsers can display a GIF and FreeImage can't, we should see that as a bug in FreeImage, regardless of whether the image is technically correct.

    Thanks,
    Rob.

     

Log in to post a comment.