Skip to content

Releases: elixir-image/image

Image version 0.40.0

06 Jan 03:07
Compare
Choose a tag to compare

Bug Fix

  • Fix docs for Image.new/1 (the docs for Image.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

03 Jan 23:24
Compare
Choose a tag to compare

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

01 Jan 18:46
Compare
Choose a tag to compare

Bug Fix

  • Fix Image.avatar/2 to correctly resize and maintain aspect ratio. Thanks to @samullen for the report and patience. Closes #123.

Image version 0.39.1

27 Dec 19:21
Compare
Choose a tag to compare

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

16 Oct 19:26
Compare
Choose a tag to compare

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 of image and vix to correctly match. This release of image requires vix version 0.23 to ensure compatibility.

Image version 0.38.2

27 Sep 14:04
Compare
Choose a tag to compare

Bug Fixes

  • Fix Image.dominant_color/2 for images with an alpha band. Thanks to @mayel for the report. Closes #114.

Image version 0.38.1

23 Sep 14:28
Compare
Choose a tag to compare

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

10 Sep 21:54
Compare
Choose a tag to compare

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 for Image.crop/5 and Image.thumnail/3.

  • Adds Image.pages/1 to return the number of pages in an image. For normal images the result will be 1. 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) in Image.crop/5.

  • Adds Image.Shape.circle/2, Image.Shape.ellipse/3 and Image.Shape.line/5 as well as their ! counterparts.

  • Allow pages: :all as a synonym for pages: -1 when opening an image.

Image version 0.37.0

17 Aug 09:59
Compare
Choose a tag to compare

Enhancements

  • Adds background: :alpha as an option to Image.trim/2. When set, the image is trimmed to the bounds of the mask in the alpha band of an image.

Image version 0.36.2

24 Jul 00:11
Compare
Choose a tag to compare

Bug Fixes

  • Fix Image.from_nx/1 by respecting the axis name order in the tensor. Thanks to @gBillal for the PR. Closes #101.