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é
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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é
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.