Page 1 of 1

Problems reading animated gif

Posted: Mon Oct 10, 2005 5:03 pm
by Alessandro
Hi

I tryed to open an animated gif but info.NumberOfImages returns always 1 so I dunno how many frames are stored into it and about the framerate... how do I know the speed of the animation? maybe for animated gif is there a standard I don't know of?

Best regards.

Re: Problems reading animated gif

Posted: Mon Oct 10, 2005 6:58 pm
by xnview
Alessandro wrote:I tryed to open an animated gif but info.NumberOfImages returns always 1 so I dunno how many frames are stored into it and about the framerate... how do I know the speed of the animation? maybe for animated gif is there a standard I don't know of?
Currrently not possible to know the frame rate. And for gif animated, there is a little problem, try gflLoadBitmap and you'll have a NumberOfImages not 1

How to extract other frames?

Posted: Fri Dec 08, 2006 4:26 pm
by voja21
When I convert gif to some other format, I got only first frame. How to access (and save) other?

Re: How to extract other frames?

Posted: Tue Dec 12, 2006 1:19 pm
by xnview
voja21 wrote:When I convert gif to some other format, I got only first frame. How to access (and save) other?
You have GFL_LOAD_PARAMS::ImageWanted

Re: Problems reading animated gif

Posted: Sat Nov 05, 2011 12:33 pm
by lazyeugene
Is there any method to determine value of "Background Color Index" for whole gif and "Disposal Method" and "Delay" fields for pictures in animated gif? Pictures itself reads correctly, but I can't find out how to get this fields :(

Re: Problems reading animated gif

Posted: Sat Nov 05, 2011 4:53 pm
by lazyeugene
And there is another problem. I'm trying to load animated gif with about a three hundreds of frames. It is not quite big - about 60k, but it loads several seconds. As i call to load evety frame individually, the library, as I suppose, must again and again load and decode file from the beginning. Maybe there is wokaround?

Re: Problems reading animated gif

Posted: Mon Nov 07, 2011 9:03 am
by xnview
lazyeugene wrote:Is there any method to determine value of "Background Color Index" for whole gif and "Disposal Method" and "Delay" fields for pictures in animated gif? Pictures itself reads correctly, but I can't find out how to get this fields :(
No sorry
lazyeugene wrote:And there is another problem. I'm trying to load animated gif with about a three hundreds of frames. It is not quite big - about 60k, but it loads several seconds. As i call to load evety frame individually, the library, as I suppose, must again and again load and decode file from the beginning. Maybe there is wokaround?
The problem is that GFL need to decompress all previous frames...

Re: Problems reading animated gif

Posted: Mon Nov 07, 2011 4:58 pm
by lazyeugene
xnview wrote:
lazyeugene wrote:Is there any method to determine value of "Background Color Index" for whole gif and "Disposal Method" and "Delay" fields for pictures in animated gif? Pictures itself reads correctly, but I can't find out how to get this fields :(
No sorry
But adding this fields to GFL_BITMAP structure should not be a problem, isn't it?
xnview wrote:
lazyeugene wrote:And there is another problem. I'm trying to load animated gif with about a three hundreds of frames. It is not quite big - about 60k, but it loads several seconds. As i call to load evety frame individually, the library, as I suppose, must again and again load and decode file from the beginning. Maybe there is wokaround?
The problem is that GFL need to decompress all previous frames...
Maybe you can register some kind of GFL_BITMAP array[]? Or save a pointer to next picture (offset from the begining of file) in GFL_BITMAP structure and accept it in load bitmap requests?

This is just a few fields, but without them it is almost unreal to load animated gif's. Please...

Re: Problems reading animated gif

Posted: Tue Nov 08, 2011 12:03 pm
by xnview
No, the better way is to add a function to load all bitmap from animated file

Re: Problems reading animated gif

Posted: Thu Nov 10, 2011 8:25 pm
by lazyeugene
I'll be waiting for a new version, thank you.