diff --git a/docs/content/5.providers/cloudinary.md b/docs/content/5.providers/cloudinary.md index 43a3fc0ff..1ae607684 100644 --- a/docs/content/5.providers/cloudinary.md +++ b/docs/content/5.providers/cloudinary.md @@ -259,6 +259,10 @@ Call a custom function on Cloudinary side. See [Custom Functions](https://cloudi To define the density number when converting a vector file to image format. +### `aspectRatio` + +To crop or resize the asset to a new aspect ratio, for use with a crop/resize mode that determines how the asset is adjusted to the new dimensions. + ::alert{type="info"} See [Cloudinary Image Transformation API](https://cloudinary.com/documentation/image_transformation_reference) for more details. :: diff --git a/src/runtime/providers/cloudinary.ts b/src/runtime/providers/cloudinary.ts index 210dd62aa..6da413951 100644 --- a/src/runtime/providers/cloudinary.ts +++ b/src/runtime/providers/cloudinary.ts @@ -28,7 +28,8 @@ const operationsGenerator = createOperationsGenerator({ zoom: 'z', colorSpace: 'cs', customFunc: 'fn', - density: 'dpi' + density: 'dn', + aspectRatio: 'ar', }, valueMap: { fit: {