P
P
Perzh2014-09-08 08:13:13
C++ / C#
Perzh, 2014-09-08 08:13:13

How to generate GIF with transparent background?

Hello.
Actually, it is necessary to generate GIF animation on a transparent background. I have a set of frames that are saved as avi , then the video is converted to GIF using ffmpeg . I can fill the background of the original frames with any color.
Question: is it possible to fill the background with some color so that the background becomes transparent during conversion? Or can you recommend a lightweight C or C++ library for working with GIFs that I could use to directly generate GIFs from existing frames (and adjust the transparency of course).
Thanks in advance.
PS:
Tried using libgd, but I'm using Visual Studio 2008 and the manual says you can use Visual Studio 2006 or earlier.
Addition:
I was able to run libgd , but I didn't get transparency. Please, who worked with gif or with libgd , help with advice!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question