Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame 1 uses more than 256 color indexes #20

Open
thomaspreece opened this issue Jul 22, 2019 · 3 comments
Open

Frame 1 uses more than 256 color indexes #20

thomaspreece opened this issue Jul 22, 2019 · 3 comments
Labels

Comments

@thomaspreece
Copy link

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.

@jtlapp jtlapp added the bug label Jul 22, 2019
@jtlapp
Copy link
Collaborator

jtlapp commented Jul 22, 2019

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?

@sanidhya711
Copy link

sanidhya711 commented Jan 22, 2021

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

@givowo
Copy link

givowo commented Jun 24, 2021

having the same issue. please fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants