Specifies the form or shape mask image that will be applied to the image.
Values
Accepted values for this parameter are ellipse, round, circly or a valid imglab URL with a custom shape image mask to be used.
For more information on how to specify URLs visit the URL values section.
In this example we apply an ellipse mask shape over a cropped version of our source image using shape=ellipse parameter:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=ellipse
Shape masks will adapt to fit the complete dimensions of the source image. In this example we are using a wider crop of our source image and applying shape=ellipse again:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=ellipse
In this example we are applying a rounded box as shape mask image with shape=round parameter to our cropped source image:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=round
It is possible to set a different radius with round-radius parameter. In this example we set a bigger radius of 60 with round-radius=60 parameter:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=round&round-radius=60
Circly is a mix shape mask between a rounded box and a circle. In this example we are applying it with shape=circly parameter:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=circly
A custom shape mask image can be used. In this example we are specifying a custom shape image named shape.svg available at our source and specifying png as the format output. The final parameter will be shape=shape.svg?format=png:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=shape.svg%3Fformat%3Dpng
Here we are applying the same custom shape mask to a wider cropped version of our source image:
GET
https://assets.imglab-cdn.net/woman-03.jpeg?shape=shape.svg%3Fformat%3Dpng
The easier way to define your own shape mask images is to create an image with a black filled geometry and a transparent background; like the one that we are using in these examples:
GET
https://assets.imglab-cdn.net/shape.svg?format=png
In order to don't lose resolution when resized we recommend to use vectorial formats like SVG to define your own custom shape mask images.