gflLoadThumbnail D4/Win98: wrong NumberOfImages for GIF ?

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
klaus2

gflLoadThumbnail D4/Win98: wrong NumberOfImages for GIF ?

Post by klaus2 »

Hi,

may it be the case that, on GIF images, gflLoadThumbnail with Delphi 4 / Win98
returns wrongs results for finfo.NumberOfImages (always "1") ? // libgfl 2.54

This result is
- different to using the same code with Delphi 6 / Win2K
- and different to the result given by gflLoadBitmap.

Any points of direction would be helpful.

Best Regards,
klaus2
klaus2

Post by klaus2 »

Seems to apply to gflGetFileInformation too

(more ugly, because i want to have the correct information, although i don't want to display animated gif with libgfl).
klaus2

Post by klaus2 »

Hi,

About gflLoadThumbnail, i did an error (in fact, gif nbrOfImages does _not_ work with D6/W2K;
also it is an already known issue) - so forget.

About gflGetFileInformation: is it assumed that it should provide the info?

Best Regards,
klaus2
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

klaus2 wrote:Hi,

About gflLoadThumbnail, i did an error (in fact, gif nbrOfImages does _not_ work with D6/W2K;
also it is an already known issue) - so forget.

About gflGetFileInformation: is it assumed that it should provide the info?
The problem with gif is that i must decompress all frames to know how many frames are in the gif.... :-(
Pierre.
Alessandro

Post by Alessandro »

If I got it right Pierre already answered to this question.
Use gflLoadBitmap to get the correct number of frames...

I hope this helps
Post Reply