gifwrap icon indicating copy to clipboard operation
gifwrap copied to clipboard

Frame 1 uses more than 256 color indexes

Open thomaspreece opened this issue 6 years ago • 3 comments

Getting the above error trying to load and save a gif

    return GifUtil.read(downloadedFile)
        .then(inputGif =>
            // Pass inputGif to write() to preserve the original GIF's specs.
             GifUtil.write(outputFileName, inputGif.frames, inputGif))

Tried with a few gifs from the internet with same result. Can use quantize function but that causes massive distortion.

thomaspreece avatar Jul 22 '19 08:07 thomaspreece

That would indeed be a bug. Thanks for reporting it. I tried with a few gifs and am not getting the error. Could you point me to a gif that gives the error?

jtlapp avatar Jul 22 '19 12:07 jtlapp

im reading a gif and then converting the frames to jimp frames and then im using the print function of jimp to write text on each of the frames and then im converting them back into gif frames and then combining them and encoding them as a gif.

however this process takes a lot of time because i have to quantize the frames every time i print the letters on the frames using Jimp but when im just converting it to jimp frame and back to a gif i dont need to quatize it(only when im not writing text on it)

please tell me if there is any way by which i will not have to quatize it every time i write something on the gif

sanidhya711 avatar Jan 22 '21 11:01 sanidhya711

having the same issue. please fix

givowo avatar Jun 24 '21 07:06 givowo