nerulio 한국어

Measuring a 1px sprite-sheet gap: coordinates and pixels across 132 frames

Nerulio|

A 203×186 tile sheet produced 132 frames with either gap setting. Chromium and Firefox exports matched 132 reference tiles at a 1px gap, and one at a 0px gap. Inspect the applied settings, coordinates and downloadable results.

Check the cut after checking the count

This small tile sheet produced 132 frames with horizontal and vertical gaps of 1px. Setting both gaps to 0px also produced 132 frames. Comparing the outputs with the intended source tiles gave a different result: 132 matches in the reference condition, and one in the zero-gap condition.

An AI agent operated the actual Nerulio UI, inspected the downloaded files and prepared this report. It does not claim separate human visual review or a game-engine execution test. Inputs, applied settings, per-frame checks and reproduction code are available below.

One input, four exports

The input is the 203×186 PNG from Kenney Tiny Dungeon 1.0. Its bundled license is CC0. The reference grid uses 16×16 cells, no outer margin, and 1px horizontal and vertical gaps: 12 columns and 11 rows. Download the exact input PNG to reproduce the comparison.

Original 203×186 Kenney Tiny Dungeon tile sheet used in the measurement

On November 14, 2026 in Korea time, we exported two conditions in Chromium 153.0.8010.12 and Firefox 155.0, for four exports in total. Both gaps were either 1px or 0px; cell size and outer margin stayed the same. Animations were set to None because these were static tiles. Pack & Export used the Phaser preset and output format.

The script follows the file picker into Studio, changes the controls, applies the cut and downloads the result. It verifies the grid stored in the applied project as well as the typed values. A zero-gap run must actually have both gaps set to zero before it can be recorded.

Count, coordinates and pixel values

BrowserX / Y gapFramesCoordinate matchesTile pixel matches
Chromium 1531px / 1px132132132
Chromium 1530px / 0px13211
Firefox 1551px / 1px132132132
Firefox 1550px / 0px13211

The counts agree because twelve 16px cells fit across 203px in either condition, and eleven fit down 186px. With zero gaps, 11px remain on the right and 10px at the bottom, while the cell count stays unchanged.

With no outer margin, a cell starts at column × (cell width + horizontal gap), row × (cell height + vertical gap). Using zero-based indices, the last cell is column 11, row 10. Its origin is (187, 170) with 1px gaps and (176, 160) with zero gaps. The final cell has drifted 11px horizontally and 10px vertically.

Nearest-neighbour 10x comparison of the last reference tile, the matching 1px-gap export and the shifted 0px-gap export

Pillow 12.3.0 reopened each downloaded atlas JSON and PNG. The check reconstructed each frame on its original canvas using its stored region, transparent offset and source size. RGB values were zeroed only where alpha was zero; all remaining RGBA sample values were compared exactly. This is not equality of complete PNG files or a test of colour-management and filtering behavior.

We also checked whether every export preserved the crop selected in the UI. All 132 crops passed in every condition. Preserving a selected crop and selecting the intended tile are separate checks.

A practical inspection order

  1. Open the original in the sprite sheet slicer. Review cell size, outer margin and both gaps in the Import panel.
  2. Inspect the first cell and the final column and row. Increasing drift is a reason to examine spacing. This input's reference settings are 16×16 cells, zero margin and 1×1 gaps.
  3. Choose None for animations when you need static tiles, then Apply. Check that a static atlas does not gain an automatic animations file. This tool's Godot SpriteFrames export requires an animation tag; the Tile workspace is another starting point for static tile maps.
  4. Recheck dimensions and coordinates in the downloaded files. Compare the 1px reference ZIP with the 0px control ZIP.

Original-sheet settings in Godot

Godot's TileSetAtlasSource documentation describes tile region size, grid origin margin and separation as distinct properties. For the original sheet in this test, the corresponding values are:

Original-sheet settingValue for this inputGodot property
Cell region size16×16texture_region_size
Grid origin margin0×0margins
Gap between cells1×1separation

A PNG rearranged by Pack & Export uses the new atlas coordinates. Use its exported metadata instead of applying the original 1px grid to the packed PNG. This report checks reconstructed files; it did not load and draw them in Phaser or Godot.

Reproduction and limits

Install the repository's Node dependencies, Python dependencies from requirements-test.txt, and Playwright browsers. Run python tools/editorial/measure-sprite-grid.py, or add --browser firefox. New results go to test-results/editorial-sprite-grid/; published evidence is protected from overwriting. The JSON includes the input hash, source commit, actual applied grid, and every frame's coordinates and comparisons.

These results describe this sheet and the recorded versions. Other sheets need their own spacing and animation decisions. Preserve the original and inspect counts, coordinates and outputs together. If compression is allowed to reduce dimensions, check the output resolution too, as in the small PNG compression case study.

Sources

  1. Chromium measurements: applied grid, coordinates and reconstructed frames
  2. Firefox measurements: applied grid, coordinates and reconstructed frames
  3. Recorded source commit and reproduction script
  4. CC0 license bundled with the Kenney Tiny Dungeon input
  5. Godot documentation: TileSetAtlasSource region size, margins and separation

Measurements and source-based commentary for game assets and file workflows. AI agents assist with research, writing and technical checks. This is separate from automatically collected news. Test reports disclose inputs, settings, outputs and limits. Human review or experience is not claimed unless explicitly stated. Report corrections through the contact link in the footer.

All tests and commentary ›