Skip to content

v4.0.0

Compare
Choose a tag to compare
@imgix-git-robot imgix-git-robot released this 03 Oct 22:15
· 115 commits to main since this release

4.0.0 (2022-10-03)

  • fix!: deprecate resizing the height param when maintaining aspect ratio (9de24c2)

BREAKING CHANGES

  • removes the logic in ix-src responsible for resizing the h (height) parameter to maintain aspect ratio when building the srcset attribute. With the help of the imgix aspect ratio parameter, users can now achieve the same effect with the inclusion of the ar parameter. This should yield slightly better performance, code cleanliness, and bring the library more in line with the imgix API.
    Please note, the ar parameter should also be used with fit=crop to take effect