Files
rosetta/docs/FORMATS.md
T

1009 B

Formats

GENERATED by tools/gen_registry.py from each format's contract (caps) - do not edit. Every format listed here is tested under both runtimes (luau --codegen -O2 and LuaJIT through the build) by bash tools/test.sh.

Category Format Extensions Read Write Capabilities Test
image png .png .apng yes yes animation: false, alpha: true, depths: 1, 2, 4, 8, 16 tests/image/png.luau
image webp .webp yes yes animation: true, alpha: true, lossy: true, lossless: true, depths: 8 tests/image/webp.luau

Codecs (layer 1, shared by formats; not loadable on their own):

  • codecs/Deflate: DEFLATE (RFC 1951) decoder and compressor, with the zlib (RFC 1950) and gzip (RFC 1952) wrappers.
  • codecs/Vp8: the VP8 video codec (RFC 6386), decode only. A codec (layer 1): image/webp uses it for lossy frames, the
  • codecs/Vp8L: WebP lossless (VP8L, "WebP Lossless Bitstream Specification", RFC 9649 section 3). A codec (layer 1):