Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Animated GIF

Can anyone show me a way to extract an animated GIF file ? and then save all the frames one by one ?

Thanks
0
klompen
Asked:
klompen
  • 2
1 Solution
 
Imthiyaz_phCommented:
Check out the TGifImage component from http://www.sulako.com/tgifimage.htm.
Its a good component for manipulating Gif files.

Use the following function to extract a frame:

    function GetFrameInfo(const FrameIndex: Integer): TFrameInfo

TFrameInfo = Record
      iiImage           : TBitmap;
      iiLeft            : Integer;  {relative to whole image}
      iiTop             : Integer;  {relative to whole image}
      iiWidth           : Integer;
      iiHeight          : Integer;
      ....
    end;

Iterate thru each frame and save the frame to a file using the iiImage field.

0
 
klompenAuthor Commented:
Hello can I get a refund here? Because I got no good answer.
Thanks
0
 
klompenAuthor Commented:
I finally get this sorted out using ImageEN component and some tutorials that I found in the internet (TGifImage freeware).
0
 
OzzModCommented:
Closed, 350 points refunded.
OzzMod
Community Support Moderator (Graveyard shift)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now