Gridwright Store

30 Nov 2026 · By Gridwright Studio

Sprite Sheet to GIF for Devlogs: Timing, Scale and Size

Gridwright pack artwork for Sprite Sheet to GIF for Devlogs: Timing, Scale and Size

You finished a walk cycle and want it in your devlog or on your store page, so you export a GIF. It plays faster or slower than in the game. The pixels look soft or uneven. The character shifts around inside the picture. Or a short clip weighs more than the screenshots around it. Each of these comes from one rule of the GIF format, and each has a setting that fixes it.

We measured it on real sheets: the knight from Side-View Characters with its JSON (idle at 6 fps, walk at 10, run and attack at 12), and the fire and explosion strips from Pixel VFX. Every GIF below was written by the code of our Sprite Sheet to GIF tool and read back frame by frame with Pillow.

Frame timing: a GIF counts in hundredths of a second

Each GIF frame stores its delay as a whole number of hundredths of a second. At 10 fps that is 10 per frame, exact. At 12 fps a frame should last 8.33 hundredths, which a GIF can't store. Round every frame to 8 and the animation plays at 12.5 fps, its loop 48 hundredths long instead of 50, so 4% fast. Round to 9 and it is 8% slow.

The fix is to round the running total instead of each frame, so the loop keeps its length. These are the delays Sprite Sheet to GIF wrote, in hundredths:

  • 6 fps, the knight's 4-frame idle: 17, 16, 17, 17. That is 67 in all, against 66.7 in the game.
  • 12 fps, 6 frames: 8, 9, 8, 8, 9, 8. 50, exact. Pillow read the file back as 80, 90, 80, 80, 90 and 80 ms.
  • 15 fps, the speed a Combat VFX claw sheet asks for: 7, 6, 7, 7, 6, 7. 40, exact.
  • 24 fps: 4, 4, 5, 4, 4, 4. 25, exact.

Why some GIFs play in slow motion

Browsers don't honour a delay of 0 or 1 hundredth. Chrome, Firefox and Safari show such a frame for 10 hundredths, so a GIF saved to play as fast as possible runs at 10 fps, and a 60 fps export whose delays were cut down to 1 plays six times too slow. The shortest delay that plays as written is 2 hundredths, which is 50 fps. That is why the tool's speed field stops at 50 and never writes a delay under 2. Our packs run at 6 to 15 fps anyway.

Scale: whole numbers and nearest neighbour, done in the file

A 32x32 character at 1x is a speck on a store page, so the GIF has to be bigger. Pixel art scales by nearest neighbour, where each pixel becomes a square block, and only by a whole number. At 1.5x the knight's 20-pixel-wide walk frame became 30 pixels wide, with every other column 2 pixels wide and the rest 1, so his outline wobbles as he moves. A smoothing filter is worse: shown 100 pixels wide instead of its 80 with a bilinear filter, the 4x frame went from 14 colours to 328.

So scale in the file, to a size that fits the width the page shows pictures at: a GIF that is too wide gets shrunk by the browser and blurs the same way. Sprite Sheet to GIF scales from 1x to 16x and opens at the largest whole scale that keeps a frame within 256 pixels, up to 8x. The file grows with it: the knight's walk was 1.1 KB at 1x, 2.6 KB at 2x, 6.0 KB at 4x and 13.7 KB at 8x.

Side-View Characters cover: knights, archers, mages, goblins and orcs on a grassy platformer level with a stone wall
Side-View Characters: 10 heroes and enemies at 32x32, each sheet with a JSON that gives every animation its speed.

Trim and padding: one box for every frame

The knight's frames are 32x32, but his walk only draws inside 20x27 pixels of them. Trimming cuts every frame to one box around what all the frames draw. Trim each frame on its own instead and each gets a different size and centre, so the character hops around the picture. With one box, the 4x walk went from 128x128 to 80x108 pixels at the same 6.0 KB, and the knight fills more of the picture.

Padding adds empty pixels around that box before scaling, so the sprite doesn't touch the edge. A frame smaller than the others stands on the bottom edge in the middle, so the feet stay on one line, and trimmed atlas frames from Aseprite or TexturePacker go back where they were drawn first.

Palette and see-through edges

A GIF takes its colours from a table of at most 256. Sprite Sheet to GIF writes one table for the whole file: up to 255 colours plus one see-through slot. The knight's walk uses 16 colours, and the Pixel VFX fire loop 5. A sheet with smooth gradients or soft glows can pass 255; then the most used colours are kept, the rest take the nearest one, and the tool tells you.

Transparency in a GIF is on or off for each pixel, so a half-transparent pixel from a soft shadow or a glow has to become solid or clear. Saved see-through, a pixel at least half covered turns solid with its own colour, which is where a hard rim around a glow comes from. The tool counts those pixels and lets you blend them onto the colour the GIF will sit on, or put the GIF on a background: dark, light, green or your own. Our knight and Pixel VFX strips have no half-transparent pixels at all.

File size: what makes a GIF heavy

A GIF's size follows its pixels, its number of frames and how much changes between frames. Measured at 4x:

  • Knight walk, 6 frames: 6.0 KB see-through, 5.3 KB on a dark background.
  • Pixel VFX fire loop, 8 frames: 4.9 KB. The 48x48 explosion, 11 frames: 16.6 KB.
  • Idle, walk, run and attack side by side, 105 frames: 368.5 KB see-through, 132.5 KB on a dark background, and 55.9 KB on the dark background at 2x.

On a solid colour each frame can keep what is already on screen and store only the box of pixels that changed. A see-through frame has to clear its box and redraw all of it, because a GIF can't make a pixel clear again on top of the frame before. With "Smaller file: store only what changes" ticked, the four animations dropped from 373.1 KB to 132.5 KB on the dark background, and only to 368.5 KB see-through. For a store page, a background in the page's own colour gives the smaller file.

Several animations in one GIF

Idle, walk, run and attack in a row is the classic devlog GIF, and the loops have different lengths. The knight's idle is 4 frames at 6 fps, 0.67 s; his attack is 5 frames at 12 fps, 0.42 s. They line up every 3.33 s, so that GIF holds the idle 5 times and the attack 8 times in 40 frames and starts over without a jump. Add the walk (0.6 s) and the run (0.5 s) and all four only line up after 30 s.

Sprite Sheet to GIF looks for a loop of up to 6 s in which every animation plays a whole number of times. When there is none, it picks the length where the speeds change least, 5% or less when that is enough. For the knight's four it found 3.43 s: idle 5 times, walk 6, run 7 and attack 8, no speed off by more than 4.8%, and it says so under the preview.

Pixel VFX strips: a fire explosion, a steel slash, a heal, an ice flame loop and a lightning bolt, one row of frames per animation
Pixel VFX: one strip per animation, frames left to right, which the tool cuts into its grid by itself.

Doing it in Sprite Sheet to GIF

  • Drop the sheet with its JSON. It reads our packs' JSON (the knight's 16 animations, a Combat VFX sheet's 8 directions), Aseprite's tags and frame times, and TexturePacker's atlas. A sheet without a JSON it can read is cut into its grid, one animation per row, empty cells left out: the Pixel VFX explosion strip has 12 cells and the last is empty, so its GIF has 11 frames.
  • Click a frame to leave it out, or hold one up to 4 times as long. Holding the last frame of an explosion gives it a pause before it repeats.
  • Keep the file's speed or set your own, add ping-pong (0 1 2 3 4 5 4 3 2 1) or reverse, and play forever, once, or 2, 3 or 5 times.
  • Pick the scale, trim, padding and background. The preview is the GIF file itself, with its size, frames, loop length and colours.
  • Download one GIF, several animations side by side, or every animation as its own GIF in a ZIP.

It runs in your browser and nothing is uploaded. GIF to Sprite Sheet goes the other way. The walk cycle guide checks a walk frame by frame, and the fire animation guide covers loops that repeat without a jump.

Where our packs fit

Side-View Characters has 10 heroes and enemies at 32x32, 8 animations each in both facings, with a JSON per sheet. Pixel VFX has 100 effects as 12 fps strips of 32x32 frames (48x48 for the two big ones). Combat VFX has 346 effects, its attacks drawn in 8 directions on 64x64 cells, and the tool reads its JSON as it is.

Combat VFX attacks drawn in 8 directions: slash, heavy slash, double slash, thrust, claw and sword wave around a knight
Combat VFX: every attack drawn in 8 directions, each sheet with a JSON of its frames and speed.

If your game needs its own characters or effects, a custom pack is drawn to your grid and frame sizes.

All three packs can go in commercial games, and the files themselves can't be resold. They came out before October 28, 2026, so a credit is welcome but optional; the details are in can I use game assets in a commercial game.

Found it useful? Share it

Get the art for your game

Our packs together in the $20 Megabundle, a custom pack drawn for your game, or the packs in this post from $9.99 each.

Best value

Gridwright Megabundle

Our packs and tools on itch.io in one bundle, for less than three of them one by one.

Get it for $20 (opens in a new tab)

Custom packs from $49

Not finding it? We draw it for your game, in 14 days or your money back.

Order a custom pack

Packs mentioned

Related guides