开发者

Fast Graphics library which can support Animated GIFs

I am using ImageMagick with animated gifs but it is very slow. Taking twenty seconds for a single animation. Is there an alternate C/C++ graphics library which is fast? A good result may be those libraries that can handle huge images. But do any of those support animated GIFs?

These are the features I am needing:

  • Split animated GIF into completely rendered frames, save in any format.
  • Change certain colors in these resulting images to White
  • Crop out a portion of each of the resulting images.
  • Recreate an animated GIF with 2 frames, from the resulting 2 images above. This GIF should be optimized. Delay on the first frame differs from delay on last frame.

It开发者_StackOverflow中文版 needs to be fast, much faster than either imagemagic or graphicsmagic.


giflib [to parse the GIF format and save to] and C++ (for the image processing). This seems the best solution for me. Also using ImageMagick's Magick++ library could improve performance a bit.


Try libavcodec and libavformat from the FFmpeg project or the libav fork thereof. These are almost surely the fastest and most flexible you'll find, but the interface complexity might be more than you were asking for.


FreeImage is similar to FFMPEG and libav, but for images. I believe it does everything you're looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜