Introduction
OpenRaster is an open format for layered images, made so that painting and image editing programs can pass layered work between them. It is deliberately simple: each layer is an ordinary PNG, and one XML file says how they stack.
It is the native format of MyPaint, and Krita, GIMP and Pinta can open and save it. Layer effects and settings that only one program understands are lost on the way.
Structure
An ORA file is a zip archive. Its first entry is an uncompressed file named
mimetype holding image/openraster. Next comes
stack.xml, which lists the layers and groups from top to bottom with
their position, opacity, visibility and blend mode, and points to each layer’s image.
The layer images sit in a data/ folder, usually as PNG files. A thumbnail
is stored at Thumbnails/thumbnail.png, and the flattened picture as
mergedimage.png, which every file must have since version 0.0.2 of the
specification.
mimetypeMIME typeimage/openraster, stored uncompressedfirststack.xmlLayer stack layers, groups and their settingsXMLdata/Layer images one PNG per layerPNGThumbnails/Thumbnailthumbnail.pngPNGmergedimage.pngFlattened picture required since 0.0.2PNG
Every entry, element, attribute and compositing operator is listed in the reference page on the archive and layer stack.
Not described
The stack page follows OpenRaster specification 0.0.6 and its RELAX NG schema.
Known, not yet covered
- Reference: the archival intent page of the specification was not read; the page only notes that
edit-lockedis omitted for archival. - Reference: vendor attributes written by Krita and MyPaint are not documented.
- Viewer: there is no OpenRaster plugin yet.
Unknown
- Reference: the
textelement: the baseline allows it in a stack but does not define it. - Reference: the published schema disagrees with the prose in places (it requires
isolationon every stack, lackstextand the extension attributes, and writes the stack content as pairs); the stack page lists the differences.
Links
Software
- MyPaint – free painting program whose native format is OpenRaster (Windows, macOS, Linux)
- Krita – free painting program that opens and saves OpenRaster (Windows, macOS, Linux, Android, ChromeOS)
- GIMP – free image editor that opens and saves OpenRaster (Windows, macOS, Linux)
- Pinta – free image editor that opens and saves OpenRaster (Windows, macOS, Linux)
Reference
- OpenRaster – the specification