how to load gif image lazarus / 39-Graphics ---------------------------------------------------------------------- __thinhorigami · 2021-10-08 11:59 Hi all, I have a question. is there a way to get the gif file? and i have an idea to make a gif art, i can do it if its just an image. but what should i do if it's a gif. I need some help. thanks all ---------------------------------------------------------------------- wp · 2021-10-08 14:24 I don't fully understand what you are trying to achieve. Load a gif file and display it on a Lazarus form? For this, add unit fpreadgif to "uses" and call Image1.Picture.LoadFromFile(name_of_gif_file) for an image on the form. However, this does not support animated gifs and has some more drawbacks. For a complete gif viewer you can install GifAnim or GifViewer from the online-package-manager. If you are trying to write a gif you'll have to live with little support here. GifAnim and GifViewer do not support writing at all. There is a tweak to provide a unit fpwritegif for fcl - search the forum, it was recently discussed -, but this is not for animated images. ---------------------------------------------------------------------- circular · 2021-10-10 12:16 You can make Gif using BGRABitmap's TBGRAAnimatedGif: https://github.com/bgrabitmap/bgrabitmap/blob/master/bgrabitmap/bgraan imatedgif.pas Create an empty gif, call SetSize and add frames. There are various methods. The simplest is to call AddFullFrame for each frame.