Layer transforms layer-transforms
Transforms are applied to source images and text layers.
The following operations are applied to source images, in the given order, to achieve the desired spatial relationship with layer 0:
- Apply
crop=
, if specified. - Scale based on
size=
or, ifsize=
is not specified, based onscale=
, or, ifscale=
is not specified, based onres=
, or, ifres=
is not specified, use the full resolution source image. - Apply
flip=
, if specified. - Apply
rotate=
, if specified. - Apply
extend=
, if specified. - Position the layer in the canvas based on
origin=
andpos=
(see below).
The following transforms are applied to text layers:
- The text box size is determined by
size=
, or the text width and height, ifsize=
is only partially or not at all provided. The text is aligned within the text box using the rtf text alignment attributes. Text may be cropped by the text box. - Scale the text content based on the resolution specified with
textAttr=
. - Apply
rotate=
, if specified. - Apply
extend=
, if specified. - Position the layer in the canvas based on
origin=
andpos=
(see below).
For both image and text layers, the last step-positioning the layer in the canvas-does not apply to layer 0, since layer 0 effectively constitutes the canvas.
recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49