Skip to content

Distortion saving a PNG as GIF #7030

Answered by radarhere
anonymous-sushi asked this question in Q&A
Discussion options

You must be logged in to vote

If have more than 256 new colors in a single frame, then you can't perfectly translate that to a GIF. That's just how the GIF format works.

https://en.wikipedia.org/wiki/GIF

The format supports up to 8 bits per pixel for each image, allowing a single image to reference its own palette of up to 256 different colors

I say 'new colors' because you could have 256 colors in the first frame, and then 256 colors added in the second frame, leading to the second image in the sequence having 512 colors - but that would involve carefully crafting the image, which I doubt is what you want.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@anonymous-sushi
Comment options

@radarhere
Comment options

Answer selected by radarhere
@anonymous-sushi
Comment options

@radarhere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants