ImageSpecificTransformationTrait
trait ImageSpecificTransformationTrait
Trait ImageSpecificTransformationTrait
Methods
Instruct Cloudinary to run a sanitizer on the image (relevant only for the SVG format).
Sets the delay between frames of an animated image in milliseconds.
Default images can be used in the case that a requested image does not exist.
Controls the density to use when delivering an image or when converting a vector file such as a PDF or EPS document to a web image delivery format.
Prevents style class names collisions for sprite generation.
Extracts selected pages/frames from the asset.
Extracts selected layers/embedded objects from the PSD file.
Changes the shape of the image.
Rounds the specified corners of an image.
Details
                                    ImageTransformationFlagTrait
    sanitize()
        
    
    Instruct Cloudinary to run a sanitizer on the image (relevant only for the SVG format).
                                    ImageQualifierTransformationTrait
    delay(Delay|int $delay)
        
    
    Sets the delay between frames of an animated image in milliseconds.
                                    $this
    defaultImage(string $defaultImage)
        
    
    Default images can be used in the case that a requested image does not exist.
                                    Density
    density(int|string $density)
        
    
    Controls the density to use when delivering an image or when converting a vector file such as a PDF or EPS document to a web image delivery format.
                                    ImageSpecificTransformationTrait
    prefix(Prefix|string $prefix)
        
    
    Prevents style class names collisions for sprite generation.
                                    LayeredImageTransformationTrait
    extract(PageQualifier|string|int ...$pages)
        
    
    Extracts selected pages/frames from the asset.
                                    LayeredImageTransformationTrait
    psdTools(PageQualifier|string|int ...$pages)
        
    
    Extracts selected layers/embedded objects from the PSD file.
                                    ImageSpecificTransformationTrait
    overlay(string $layer, Position|AbsolutePosition $position = null, string $blendMode = null)
        
    
    Adds an overlay over the base image.
                                    ImageSpecificTransformationTrait
    underlay(string $layer, Position|AbsolutePosition $position = null, string $blendMode = null)
        
    
    Adds an underlay under the base image.
                                    ImageSpecificTransformationTrait
    reshape(ReshapeQualifier|EffectAction|EffectQualifier|mixed $reshape)
        
    
    Changes the shape of the image.
                                    ImageSpecificTransformationTrait
    roundCorners(int|string|CornerRadius $radiusOrTopLeft, int $topRight = null, int $bottomRight = null, int $bottomLeft = null)
        
    
    Rounds the specified corners of an image.
Only $radiusOrTopLeft specified: All four corners are rounded equally according to the value.
Only $radiusOrTopLeft and $topRight specified: Round the top-left & bottom-right corners according
to $radiusOrTopLeft, round the top-right & bottom-left corners according to $topRight.
Only $radiusOrTopLeft, $topRight and $bottomRight specified: Round the top-left corner according
to $radiusOrTopLeft, round the top-right & bottom-left corners according to $topRight, round the bottom-right
corner according to $bottomRight.
All qualifiers specified: Each corner is rounded accordingly.
                                    ImageSpecificTransformationTrait
    border(Border $border)
        
    
    Adds a border around the image.
                                    ImageSpecificTransformationTrait
    backgroundColor(Background|ColorValue|string $color)
        
    
    Sets the color of the background.
                                    ImageSpecificTransformationTrait
    background(Background|string $background)
        
    
    Sets the image background.
                                    ImageSpecificTransformationTrait
    colorSpace(ColorSpace|string $colorSpace)
        
    
    Controls the color space used for the delivered image.
                                    ImageSpecificTransformationTrait
    animated(AnimatedEdit $animated)
        
    
    Applies animated image transformation action.