Resize an image to social media dimensions, add watermarks, or crop
https://imageUrl not present.width and height for resizing. If cropping, you may optionally specify the center x and y coordinates.
Default is the center of the image.dimensions field.
For example "platform": "facebook" will set the dimension of the image as width 1200px and height 630px.
facebook: 1200px width, 630px height.instagram: 1080px width, 1080px height.instagram_landscape: 1080px width, 680px height.instagram_portrait: 1080px width, 1920px height.instagram_special: 1080px width, 800px height.linkedin: 1200px width, 627px height.pinterest: 1080px width, 1920px height.tiktok: 1080px width, 1920px height.twitter: 1600px width, 900px height.mode parameter set to crop with the dimensions and xCoordinate and yCoordinate fields.
dimensions field:
platform or the dimensions field width and height must be specified.
dimensions field:
platform or the dimensions field width and height must be specified.
For square crops, if width or height are less than the dimensions of the provided image, the small of the width or height will be used. For example, if the image is 1200x800 and the crop requested is 1080x1080, the image returned will be 800x800.

https:// and an optional position.
The watermark will by default appear in the bottom right corner of the image - southeast.
We recommend a PNG with a transparent background.
Example watermark JSON:

northnortheasteastsoutheastsouthsouthwestwestnorthwestcenter"mode": "blur". String value, e.g. "#A020F0"
Example color background JSON:

grayscale, sepia, or invert. The field "blur": true is not required and should not be used if you do not want a background.
Example grayscale JSON:

convertToJpg and convertToWebP options allow you to transform images from their original format (such as PNG) to JPG or WebP format respectively.
By default, the converted images will have a quality setting of 75%.
You can customize the compression level by using the quality parameter in the effects object.
Note that if your source image is already a JPG and you use convertToJpg, the API will simply resize the image to your specified dimensions without changing the format.
Example convert to JPG: