Image version 0.26.0
Breaking change
Image.avatar/3
is nowImage.avatar/2
. Thesize
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.