ImageOptions
The ImageOptions type is an extension of the AssetOptions type, adding Image-specific properties.
Properties
| Property | Types | Required | Default | Description | |
|---|---|---|---|---|---|
| angle | - | - | |||
| art | - | - | |||
| aspectRatio | - | - | Crops or resizes the asset to a new aspect ratio. | More Info | |
| assetType | - | image | The type of asset to deliver. | More Info | |
| assistColorblind | - | - | |||
| autoBrightness | - | - | |||
| autoColor | - | - | |||
| autoContrast | - | - | |||
| background | - | - | |||
| blackwhite | - | - | |||
| blur | - | - | |||
| blurFaces | - | - | |||
| blurRegion | - | - | |||
| border | - | - | |||
| brightness | - | - | |||
| brightnessHSB | - | - | |||
| cartoonify | - | - | |||
| color | - | - | |||
| colorize | - | - | |||
| contrast | - | - | |||
| crop | - | limit | |||
| defaultImage | - | - | Configures the default image to use in case the given public ID is not available. Must include file extension. | More Info | |
| deliveryType | - | upload | Delivery method of the asset. | More Info | |
| distort | - | - | |||
| dpr | - | - | Delivery method of the asset. | More Info | |
| effects | - | - | Array of objects specifying transformations to be applied to asset. | ||
| enhance | - | - | Uses AI to analyze an image and make adjustments to enhance the appeal of the image. | More Info | |
| fillBackground | - | - | Uses Generative Fill to extended padded image with AI | More Info | |
| fillLight | - | - | |||
| flags | - | - | Alters the regular behavior of another transformation or the overall delivery behavior. | More Info | |
| format | - | auto | Converts (if necessary) and delivers an asset in the specified format. | More Info | |
| gamma | - | - | |||
| gradientFade | - | - | |||
| gravity | - | - | Determines which part of an asset to focus on. Note: Default of auto is applied for supported crop modes only. | More Info | |
| grayscale | - | - | |||
| height | - | - | Height of the given asset. | ||
| improve | - | - | |||
| loop | - | - | |||
| multiply | - | - | |||
| namedTransformations | - | - | Named transformations to apply to asset. | More Info | |
| negate | - | - | |||
| oilPaint | - | - | |||
| opacity | - | - | |||
| outline | - | - | |||
| overlay | - | - | Image or text layer that is applied on top of the base image. | More Info | |
| overlays | - | - | Image or text layers that are applied on top of the base image. | More Info | |
| pixelate | - | - | |||
| pixelateFaces | - | - | |||
| pixelateRegion | - | - | |||
| quality | - | auto | Quality of the delivered asset | More Info | |
| radius | - | - | |||
| rawTransformations | - | - | Array of transformation parameters using the Cloudinary URL API to apply to an asset. | More Info | |
| recolor | - | - | Uses generative AI to recolor parts of your image, maintaining the relative shading. | More Info | |
| redeye | - | - | |||
| remove | - | - | Applies zooming and/or panning to an image, resulting in a video or animated image. | More Info | |
| removeBackground | - | - | Removes the background of an image using the Cloudinary AI Background Removal Add-On (Required). | More Info | |
| replace | - | - | Uses generative AI to replace parts of your image with something else. | More Info | |
| replaceColor | - | - | |||
| restore | - | - | Uses generative AI to restore details in poor quality images or images that may have become degraded through repeated processing and compression. | More Info | |
| sanitize | - | - | Runs a sanitizer on SVG images. | More Info | |
| saturation | - | - | |||
| screen | - | - | |||
| seoSuffix | - | - | Configures the URL to include an SEO-friendly suffix in the URL | More Info | |
| sepia | - | - | |||
| shadow | - | - | |||
| sharpen | - | - | |||
| shear | - | - | |||
| simulateColorblind | - | - | |||
| src | Yes | - | Cloudinary Public ID or versioned Cloudinary URL (/v1234/) | ||
| strictTransformations | - | - | Gives you the ability to have more control over what transformations are permitted to be used from your Cloudinary account. | More Info | |
| text | - | - | Text to be overlaid on asset. | More Info | |
| tint | - | - | |||
| transformations | - | - | Deprecated: use namedTransformations instead | More Info | |
| trim | - | - | |||
| underlay | - | - | Public ID of image that is applied under the base image. | More Info | |
| underlays | - | - | Image layers that are applied under the base image. | More Info | |
| unsharpMask | - | - | |||
| vectorize | - | - | |||
| version | - | - | Custom version number to apply to asset URL. | More Info | |
| vibrance | - | - | |||
| vignette | - | - | |||
| width | - | - | Width of the given asset. | ||
| zoom | - | - | Controls how close to crop to the detected coordinates when using face-detection, custom-coordinate, or object-specific gravity. | More Info | |
| zoompan | - | - | Applies zooming and/or panning to an image, resulting in a video or animated image. | More Info |