I need to obtain the first frame from an animated GIF file. This is easy to achieve by loading the file in a TGIFImage object:
GIF.LoadFromFile(FileName)
BMP.Assign(GIF)
The problem is that for (large) animated GIF files this takes a while... my computer needs 12 seconds and a LOT of RAM to load a 50MB file.
I was hoping that I will be able to pass the file to TCustomGIFRenderer and extract the first frame. But TCustomGIFRenderer only operates on 'live' (in memory) GIF images.
Is it possible to get only the first frame without loading the whole file?