Menu

Which GIF knobs change file size in a browser tool: colors, dithering, frame drop, scale
📰

Which GIF knobs change file size in a browser tool: colors, dithering, frame drop, scale

DEV Community: javascript·NullPointerZen·14 days ago
#5fF91ztK
#devtojavascript#devto#dev#colors#dithering
Reading 0:00
15s threshold

Every GIF tool shows you a different pile of sliders when a file is too big to send. I wanted to know which of them actually move the byte count. The sample is MORPH.gif, 675×599, 10 frames, 3,003,893 bytes, by Kowloonese on Wikimedia Commons under CC BY-SA 3.0. Everything below comes from this one clip, one machine (Apple M4, desktop Chromium), single runs, so read the numbers as "this clip" and not as a rule for GIFs in general.

Cutting colors moves the size the most

I used the animation tool in ImgIng https://imging.ai/ on desktop Chromium, GIF output, dithering off, and changed only the color count. The default is 256 colors and gives 1,525,126 bytes. At 128 colors it was 1,337,247, at 64 colors 1,083,830, and at 32 colors 811,310. That is roughly a halving between 256 and 32. For comparison, ezgif's lossy mode at its default level 30 produced 505,987 bytes from the same file and iLoveIMG's page, which has no settings, produced 656,903, so the default ImgIng output was the largest of the three.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.