crop

Crop Image. Specifies a rectangular crop region, expressed either in pixels or normalized relative to the full-resolution source image or mask image.

crop= *coord*, *size*

cropN= *coordN*, *sizeN*

coord

Pixel offset from the top-left corner of the source image to the top-left of the crop rect (int, int).

coordN

Normalized offset from the top-left of the source image to the top-left of the crop rect (real, real).

size

Size of the crop rect in pixels (int, int).

sizeN

Normalized size of the crop rect relative to the size of the source image (real, real).

May also be used to extend the image beyond its boundaries by specifying negative x, y values and/or width, height values larger than the image width, height. In this case, the extended area is fully transparent (unless bgColor= is specified).

Properties

Source image/mask attribute. Applies to the layer 0 source image if layer=comp. Ignored by layers which are not associated with a source image or mask.

Default

Entire image ( cropN=0,0,1,1).

Examples

Crop 10% off the left and 10% off the right:

…&cropN=0.1,0,0.8,1&…

Crop 20% off the bottom edge of an image:

…&cropN=0,0,1,0.8&…

See also

cropPath bgColor= , anchor=, extend=

On this page