Scale

Fixed Scale

<transform
    type="scale"
    scale="point"
    relative="false | true"
    />

ATTRIBUTES

scale
Target dimensions or factor
relative
Whether or not the scale is given as a relative factor by which the source is scaled

Context-Dependent Scale

<transform
    type="crop | letterbox"
    width="number"
    height="number"
    />

ATTRIBUTES

width
height

Examples

<movie>
    <scene background="#339999">
        <video src="https://cdn.impossible.io/xml/003.mov">
            <transform type="crop" width="200" height="200" />
        </video>
    </scene>
</movie>
Original Video
Transformed Video
(type="crop" width="200" height="200", scene background set to "#339999")
<movie>
    <scene background="#339999">
        <video src="https://cdn.impossible.io/xml/003.mov">
            <transform type="letterbox" width="200" height="200" />
        </video>
    </scene>
</movie>
Original Video
Transformed Video
(type="letterbox" width="200" height="200", scene background set to "#339999")

Terms of Use | © 2017, Impossible Software, or its affiliates. All rights reserved.