Questions tagged [giflib]

GIFLIB is a package of portable tools and library routines for working with GIF images.

GIFLIB is a package of portable tools and library routines for working with GIF images.

http://giflib.sourceforge.net/intro.html

7 questions
3
votes
0 answers

How to generate animation in C/C++

What is a high-level approach to generating for encoding a series of RGB buffers (from e.g. png files) into an animated gif? I have been studying giflib but it seems overly complex. It is very low-level and documentation is sparse, especially on…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
3
votes
1 answer

Is giflib 5.1.2 not thread-safe?

I am using giflib, and have discovered that if I open a new file before closing the previous one, all hell breaks loose. DGifOpen (file A) DGifSlurp (file A) DGifOpen (file B) DGifSlurp (file B) - fails with D_GIF_ERR_READ_FAILED Which is…
Lilith River
  • 16,204
  • 2
  • 44
  • 76
2
votes
1 answer

Heroku deploy error canvas and gif_lib.h

I'm trying to deploy in Heroku and I get the following build log: -----> Node.js app detected -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=error NPM_CONFIG_PRODUCTION=true NODE_ENV=production …
Yafim Simanovsky
  • 531
  • 7
  • 26
1
vote
1 answer

Error when decoding a gif using giflib

I'm attempting to decode .gif files using giflib. The following code leads to a segfault on the final line (the output width/height is correct). GifFileType* gif = DGifOpenFileName(filename.c_str(), &errCode); if (gif == NULL) { std::cout <<…
yhenon
  • 4,111
  • 1
  • 18
  • 34
1
vote
0 answers

Apply patch between gif frames

I want to extract gif frames to raw BGRA data, I used giflib to parse format. I've got first frame (I suppose it's like a key frame in video) that looks good and second (it's 15 frames actually, but let's simplify it) that looks like diff frame.…
Tommi
  • 3,199
  • 1
  • 24
  • 38
0
votes
1 answer

How do I get the RGB colour data from a GIFLIB SavedImage structure

I'm using GIFLIB to load in a gif file and I want to extract the RGB data from each frame. I've used DGifSlurp to load in the file but I cant work out exactly how to get the RGB data from the SavedImage structure. Two tests seem to work, though…
user3162134
  • 287
  • 1
  • 10
0
votes
1 answer

Trying to encode a GIF file using giflib

I am given image data and color table I am trying to export it as a single frame GIF using giflib. I looked into the API, but can't get it to work. The program crashes even at the first function: GifFileType image_out; int errorCode = 0; char*…
Vahagn Tumanyan
  • 500
  • 1
  • 13
  • 29