Skip to content

@responsive-image/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 12 Sep 22:48
· 831 commits to main since this release
f8f99e0

Major Changes

  • #614 2d10626 Thanks @simonihmig! - 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.

    // using @resposive-image/cdn
    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' },
      ],
    });
    {{!-- using @responsive-image/ember }}
    <ResponsiveImage
      @src={{responsiveImageCloudinaryProvider
        "foo/bar.jpg"
        transformations=(hash co="rgb:20a020" e="colorize:50")
      }}
    >

Patch Changes