charlietangora / gif-h

Simple C++ one-header library for the creation of animated GIFs from image data.
The Unlicense
497 stars 98 forks source link

How to use GifWriteLzwImage ? #13

Closed sonichy closed 5 years ago

sonichy commented 5 years ago

GifWriteFrame the GIF size is too big, how to use GifWriteLzwImage ?

rversteegen commented 5 years ago

You're probably confused. GifWriteLzwImage is not part of the public API, you should only call GifWriteFrame.

BUT if your actual question is "how can I create a .gif out of 8-bit images instead of 32-bit images", which will indeed produce smaller .gifs, then the answer is: use my fork of gif.h. I haven't filed a pull request yet back into this upstream repo. https://github.com/rversteegen/gif-h/