The Image Editing API gives you control over the size of the result image.
For this, set the parameter outputSize with one of the following values:
outputSize
auto (default)
auto
if templateId is set, keeps the size of the template
templateId
if templateId isn't set, behaves like originalImage
originalImage
{width}x{height} sets a custom size (example: 1920x1080)
{width}x{height}
1920x1080
originalImage keeps the dimensions of the input image
croppedSubject uses the dimensions of the cutout subject
croppedSubject
Last updated 10 months ago
Was this helpful?