Animated GIF

Posted on 2004-11-17
Last Modified: 2011-09-20
Can anyone show me a way to extract an animated GIF file ? and then save all the frames one by one ?

Question by:klompen
    LVL 6

    Expert Comment

    Check out the TGifImage component from
    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;

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


    Author Comment

    Hello can I get a refund here? Because I got no good answer.

    Author Comment

    I finally get this sorted out using ImageEN component and some tutorials that I found in the internet (TGifImage freeware).

    Accepted Solution

    Closed, 350 points refunded.
    Community Support Moderator (Graveyard shift)

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now