Skip to content

Screenshots

A screenshot bundle is one image of what a game showed, tied to the game and to the emulator that took it. A state carries the same kind of image as its own picture, in a screenshot part. This shape is for one that travels on its own.

shape is "screenshot".

KeyNameReq?Notes
0shapeyes"screenshot".
1systemnoThe system the game runs on.
2gamenoThe game on the screen.
3sourcenoWhat took it: the app, and the core where one ran.
5descriptionnoFree-form note.
6bundled_atnoWhen the bundle was assembled, not when the image was taken.
7taken_atnoWhen the screenshot was taken.

card, taken_with and origin are forbidden. The full definitions are in the header map.

One part, of kind screenshot, and nothing else. Two images are two bundles, and a collection holds them together.

These rules hold for a screenshot part wherever it sits, in this shape or in a state.

  • content_type is required, and is image/png or image/jpeg. A new type comes from a PR against this spec.
  • A producer SHOULD keep a PNG or a JPEG as the emulator wrote it. Encoding a JPEG again as PNG cannot recover what the first encode dropped, and makes the file several times larger.
  • A producer MUST encode any other image as PNG. That covers a raw framebuffer, such as the ones mGBA and DuckStation keep inside their state files.
  • A consumer that rebuilds an emulator’s file converts the image to whatever that file holds. Showing one needs no conversion, since any image library reads both types.
827539798([
{ 0: "screenshot", 1: "snes" },
[ { 0: 0, 1: "screenshot", 6: "image/png", 9: 18540(h'…32 bytes…'), -1: h'…the PNG…' } ]
])