Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Jun 9, 2024
1 parent 4b9fae9 commit 2d10626
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .changeset/mean-pots-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@responsive-image/cdn': major
'@responsive-image/ember': major
---

Use Record-based API for cloudinary transformations

Instead of passing cloudinary transformations as a string according to the Cloudinary Transformation URL API, you need to pass them as an object. If you want to use chained transformations, pass an array of objects.

```js
const simpleTransformation = cloudinaryProvider('foo/bar.jpg', {
transformations: { co: 'rgb:20a020', e: 'colorize:50' },
});

const chainedTransformation = cloudinaryProvider('foo/bar.jpg', {
transformations: [
{ co: 'rgb:20a020', e: 'colorize:50' },
{ ar: '1.0', c: 'fill', w: '150' },
{ r: 'max' },
],
});
```

0 comments on commit 2d10626

Please sign in to comment.