Hi Devil team,
I found error when calling ilConvertImage(IL_RGBA, IL_UNSIGNED_BYTE) for animated gif files. It seems that this problem occurs since version 1.7.3 (1.7.2 works). Test source:
int main(int argc, char* argv)
if(argc < 2)
success = ilLoadImage(argv);
printf("error while openning file\n");
success = ilConvertImage(IL_RGBA, IL_UNSIGNED_BYTE);
printf("error while converting image\n");
Otherwise, saving all images of the animation in separate png files (using ilActiveImage and ilSave(IL_PNG, ...)) works well but resulting files are bad. I found this problem only for optimized GIF files (if they use transparency to avoid duplication of similar part of the image).
When i've enough time, i will try to find more details (or fix) to help you debugging this problem.
Do you have an example GIF that this fails on?
you can try with this one :
Okay, I think I found the source of the problem. One was in ilConvertImage when it converts the palette. Another was in the GIF-loading code where the x and y offsets were not being properly applied for a frame. The version in CVS is able to load the Newton's cradle image just fine now.
Good ! i will try it, thanks !
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.