Image parameters
The following parameter list applies to the type=image parameter.
format
string
auto | png | jpeg | webp | gifValuesEncodes the output image in the specified format.
If the output image contains transparencies, a check pattern is calculated in the transparent areas in the output
format jpeg.
To prevent this, the matte effect must be used beforehand.
The default value auto causes the supported format to be determined on the basis of the web browser
client header Accept.
?format=jpeg
quality
string
92Default0Minimum100MaximumDetermines the image quality and, above all, the image size in the jpeg and webp formats.
?quality=12
width
number
400Default1Minimum5120MaximumDefines the width of the output image.
The source image is scaled to this size in real time.
If the height is also specified at the same time, the image aspect ratio determines whether width or height is used.
The maximum value is used.
?width=150
height
number
300Default1Minimum2880MaximumThe same specifications apply as for width.
encoding
string
image | base64ValuesAllows output as a normal, binary encoded image or as a base64 encoded string. This can be useful if the image is to be loaded only as a string in JavaScript, for example.
rect
float array
left,top,width,heightSyntaxDefines a crop area from the top and left edge and with width and height.
The values are given as relative coordinates with values between 0 and 1.
For example, a value of 0.25,0.25,0.5,0.5 zooms in an image to exactly in the centre of the image.
?rect=0,0,1,1