Releases: elixir-image/image
Image version 0.40.0
Bug Fix
- Fix docs for
Image.new/1
(the docs forImage.new/{2, 3}
are correct).
Enhancements
- Adds
Image.join/2
which takes a list of images and joins them into a grid.
Image version 0.39.3
Bug Fix
- Fix typespec of
Image.write!/3
to include:memory
as a valid destination. Thanks to @LostKobrakai for the PR. Closes #124.
Image version 0.39.2
Image version 0.39.1
Bug Fix
-
Adds support for
phoenix_html
~4.0 in addition to ~3.2 and ~2.1. Thanks to @tapickell for the PR. -
Don't include
priv/models
in the hex package.
Image version 0.38.3
Bug Fixes
- Due to the fix for this issue in vix, a fix is applied in
Image.nx/2
to ensure correct operation. There should be no change to user code other than the requirement for the versions ofimage
andvix
to correctly match. This release ofimage
requiresvix
version0.23
to ensure compatibility.
Image version 0.38.2
Image version 0.38.1
Bug Fixes
-
Fix
t:Image.Options.Avatar.avatar_options/0
. Thanks to @jarrodmoldrich. Closes #113. -
Improves
Image.avatar/2
documentation and brings the docs into line with the implementation.
Image version 0.38.0
Bug Fixes
- Fix
extend_mode: :black
color handling for images with an alpha band. Also fixes when the image is a single band image. Thanks to @icefoxen for reporting the issue. Closes #108.
Enhancements
-
Adds a squircle mask function and a squircle avatar shape option. Thanks to @gf3 for the PR.
-
Adds
Image.map_pages/2
to execute a function for each page in a.webp
or.gif
image then reassemble the pages into a new image. This can be used to crop all the frames of an animated image. Thanks to @Mefgalm for the prompt to get this done. Eventually this function will be used by default forImage.crop/5
andImage.thumnail/3
. -
Adds
Image.pages/1
to return the number of pages in an image. For normal images the result will be1
. For animated images it will be the number of frames in the animation. -
Adds support for cropping multi-page images (like animated
.webp
and.gif
images) inImage.crop/5
. -
Adds
Image.Shape.circle/2
,Image.Shape.ellipse/3
andImage.Shape.line/5
as well as their!
counterparts. -
Allow
pages: :all
as a synonym forpages: -1
when opening an image.
Image version 0.37.0
Enhancements
- Adds
background: :alpha
as an option toImage.trim/2
. When set, the image is trimmed to the bounds of the mask in the alpha band of an image.