.. toctree:: :maxdepth: 2 .. _structure: Synfig File Format (.sif) ========================= Overview -------- Synfig store its data in a `XML `_ file format but with a ``.sif`` file extension. Current stable versions of Synfig Studio have `.sifz` file extension set as default when saving a new animation file. It is just a ``.sif`` file compressed by using `gzip `_ file format. This document describes the `.sif` version 1.2 (used in Synfig Studio >= 1.4). Since version 1.0, all real numbers must use dot character as the decimal separator. .. _canvas: The root node and painting world: 'canvas' ------------------------------------------ Overview ~~~~~~~~ The 'canvas' is the only possible root node element in this XML file, but it may be used as child node too. As a child node, it can be described inline, be part of another canvas 'library' ('defs' node) or even may refer to an external file. See 'id' attribute. The element ~~~~~~~~~~~~~~~~~~~~ Content model ^^^^^^^^^^^^^ 'canvas' may have any of these elements in any order*: * authoring info: `'name'`_, `'desc'`_, `'author'`_ * other meta info: `'meta'`_ * library info: `'defs'`_, `'bones'`_, `'keyframe'`_ * content info: `'layer'`_ Attributes ^^^^^^^^^^ :id: canvas identifier. Ignored if it is the root canvas. Default: "". :guid: :version: the canvas version. Current default: "1.2". :width: Default: 480. :height: Default: 270. :xres: Default: 2834.645669 dpm (i.e. 72 dpi). :yres: Default: 2834.645669 dpm (i.e. 72 dpi). :gamma-r: The color correction factor for red component. Default: 1. (since 1.1) :gamma-g: The color correction factor for green component. Default: 1. (since 1.1) :gamma-b: The color correction factor for blue component. Default: 1. (since 1.1) :fps: How many frames should be rendered per second. Default: 24fps. :begin-time: