Skip to content

@responsive-image/[email protected]

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 11 Dec 17:51
· 33 commits to main since this release
b2c85b1

Major Changes

  • #586 84abd80 Thanks @simonihmig! - Rename all packages to be under a new @responsive-image scope

  • #608 a3f94f2 Thanks @simonihmig! - Use imagetools for more image processing options

    @responsive-image/webpack is now using the imagetools-core package for image processing via sharp. This now supports not only scaling to different sizes and generating different image formats as before, but also a lot of other directives for image manipulation.

    Breaking Changes: Some parameters passed to the loader as defaults directly or using as query parameters in imports had to change to align with that library:

    • widths has been renamed to w
    • formats to format
    • the separator for array vlues has been changed to ; instead of ,

    Example: import image from './path/to/image.jpg?w=400;800&responsive';

Minor Changes

  • #598 025ccef Thanks @simonihmig! - Refactored BlurHash implementation to be ESM based

  • #663 3ab97bd Thanks @simonihmig! - Do not apply default value for quality

    Instead we rely on sharp's own defaults. For .avif images this will use a lower quality setting (50 instead of 80), which produces smaller sizes with almost the same visual quality as e.g. 80 for jpegs.

  • #669 e2d6111 Thanks @simonihmig! - Add caching support

    Generated images will be cached, based on the source and image processing config. This is especially useul for the vite-plugin in dev mode (serve), since images are processed on-demand within the Vite dev server middleware.

  • #664 bab7cae Thanks @simonihmig! - Rename all eri-* attributes and classes to ri-* for consistency

Patch Changes