Skip to content

Image version 0.26.0

Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 12 Mar 10:05
· 458 commits to main since this release

Breaking change

  • Image.avatar/3 is now Image.avatar/2. The size parameter is now the :size option. The default value of 180 pixels remains.

Enhancements

  • Image.avatar/2 takes a :shape option that is either :circle (the default) or :square. This allows the generation of either circular or square avatars.

Bug Fixes

  • Fix Image.open/2 for SVG binaries and add note to show that SVG images can be opened.

  • Fix Image.avatar/2 to square the image after thumbnailing but before applying any mask. This ensures a circular mask is centred on the thumbnailed image.

  • Fix Image.avatar/2 for image path parameters which no correctly flattens the image.

  • Fix Image.avatar!/2 to accept either an image or an image path.