trait LayerFlagTrait

Trait LayerFlagTrait

Methods

regionRelative()

Modifies percentage-based width & height qualifiers of overlays and underlays (e.g., 1.0) to be relative to the overlaid region. Currently regions are only defined when using gravity 'face', 'faces' or 'custom'.

relative()

Modifies percentage-based width & height qualifiers of overlays and underlays (e.g., 1.0) to be relative to the containing image instead of the added layer.

cutter()

Trims pixels according to the transparency levels of a given overlay image.

layerApply()

Applies all chained transformations, until a transformation component that includes this flag, on the last added overlay or underlay instead of applying on the containing image.

replaceImage()

Replaces the first image embedded in a PDF with the image stipulated as an overlay, instead of adding it as another overlay.

splice()

Splices the video stipulated as an overlay on to the end of the container video instead of adding it as an overlay.

noOverflow()

Prevents Cloudinary from extending the image canvas beyond the original dimensions when overlaying text and other images.

textNoTrim()

By default, text overlays are trimmed tightly to the text with no excess padding. This flag adds a small amount of padding around the text overlay string.

textDisallowOverflow()

Returns an error if the text overlay exceeds the image boundaries.

tiled()

Tiles the added overlay over the entire image.

Details

static FlagQualifier regionRelative()

Modifies percentage-based width & height qualifiers of overlays and underlays (e.g., 1.0) to be relative to the overlaid region. Currently regions are only defined when using gravity 'face', 'faces' or 'custom'.

Return Value

FlagQualifier

static FlagQualifier relative()

Modifies percentage-based width & height qualifiers of overlays and underlays (e.g., 1.0) to be relative to the containing image instead of the added layer.

Return Value

FlagQualifier

static FlagQualifier cutter()

Trims pixels according to the transparency levels of a given overlay image.

Wherever the overlay image is transparent, the original is shown, and wherever the overlay is opaque, the resulting image is transparent.

Return Value

FlagQualifier

static FlagQualifier layerApply()

Applies all chained transformations, until a transformation component that includes this flag, on the last added overlay or underlay instead of applying on the containing image.

Return Value

FlagQualifier

static FlagQualifier replaceImage()

Replaces the first image embedded in a PDF with the image stipulated as an overlay, instead of adding it as another overlay.

Return Value

FlagQualifier

static FlagQualifier splice()

Splices the video stipulated as an overlay on to the end of the container video instead of adding it as an overlay.

Return Value

FlagQualifier

static FlagQualifier noOverflow()

Prevents Cloudinary from extending the image canvas beyond the original dimensions when overlaying text and other images.

Return Value

FlagQualifier

static FlagQualifier textNoTrim()

By default, text overlays are trimmed tightly to the text with no excess padding. This flag adds a small amount of padding around the text overlay string.

Return Value

FlagQualifier

static FlagQualifier textDisallowOverflow()

Returns an error if the text overlay exceeds the image boundaries.

Return Value

FlagQualifier

static FlagQualifier tiled()

Tiles the added overlay over the entire image.

Return Value

FlagQualifier