Show HN: Embedded Spritesheet PNG Standard (mccormick.cx)

3 points by chr15m ↗ HN
Hi HN!

2d spritesheets for game development are often distributed as a PNG image, sometimes with a separate JSON or XML metadata document describing the layout, including any animation sequences within the sheet. Sometimes there is no metadata document and you have to work it out and manually write custom code to chop up the spritesheet and reference the sprites you want.

I think it would be good if it became standard practice to distribute spritesheet PNGs with the metadata inline inside a PNG "chunk" so the whole thing is self-contained. That way artists can just distribute one file, and tools and libraries can read the metadata directly from it. That's what this spec/standard is about.

The linked page proposes a standard, describes the technique's details, and provides an online tool for inlining metadata into the sheet. Hope it's useful!

2 comments

[ 1.7 ms ] story [ 16.0 ms ] thread
It’s similar to what tools like Automatic1111 and ComfyUI do which embed the workflow and pipeline as EXIF so the image can be recreated later.

The biggest issue I see with this is that, depending on the graphics editor, export formats, etc, this information can easily be lost and/or mangled.