Skip to main content

Image transformations

Log in to add to favourites

The ImageTransformations class represents transformations that will be applied to images in the Delivery API and within the Image Editor in the Contensis Entry UI.
All properties within the ImageTransformation type are optional.

Members

Name Type Description
Crop ImageCrop The crop properties including Height, Width, X and Y.
Quality int? The image quality in percentage.
Rotate int? The image rotation in degrees.
Size ImageSize The image resize properties including Height and Width.
Flip string The image flip orientation.

Setting the image transformations

C#
ImageTransformations transformations = new ImageTransformations
{
    Crop = new ImageCrop
    {
        Height = 1080,
        Width = 1920,
        X = 400,
        Y = 900
    },
    Quality = 100,
    Rotate = 90,
    Size = new ImageSize
    {
        Height = 1080,
        Width = 1920
    },
    Flip = ImageFlip.Vertical
};

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request