LayerFlagTrait
trait LayerFlagTrait
Trait LayerFlagTrait
Methods
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'.
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.
Trims pixels according to the transparency levels of a given overlay image.
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.
Replaces the first image embedded in a PDF with the image stipulated as an overlay, instead of adding it as another overlay.
Splices the video stipulated as an overlay on to the end of the container video instead of adding it as an overlay.
Prevents Cloudinary from extending the image canvas beyond the original dimensions when overlaying text and other images.
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.
Returns an error if the text overlay exceeds the image boundaries.
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'.
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.
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.
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.
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.
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.
static FlagQualifier
noOverflow()
Prevents Cloudinary from extending the image canvas beyond the original dimensions when overlaying text and other images.
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.
static FlagQualifier
textDisallowOverflow()
Returns an error if the text overlay exceeds the image boundaries.
static FlagQualifier
tiled()
Tiles the added overlay over the entire image.