Skip to content

Releases: elixir-image/image

Image version 0.62.1

22 Oct 21:59

Choose a tag to compare

Bug Fixes

  • Fix decoding EXIF component configuration if the value is invalid. Fixes #194. Thanks to @ethangunderson for the report.

  • Fix Image.minimize_metadata/1 when the image does not have an author or copyright field.

Image version 0.62.0

08 Aug 22:26

Choose a tag to compare

Breaking Change

  • Image.histogram/1 previously normalized the results which meant that the pixel counts for each bucket could not be resolved. The function no longer normalises the histogram so the raw pixel counts per bucket are retained.

Bug Fixes

  • Image.histogram/1 is fixed to not normalize histogram entries. Therefore the histogram now returns correct pixel counts.

  • Fix Image.Text.add_background_padding/2 when the padding is derived from a base image.

Enhancements

  • Add Image.to_list/1 to return an image as a nested list.

  • Added an example for Image.histogram/1 to illustrate what data is returned and how to interpret it.

Image version 0.61.1

14 Jul 07:32

Choose a tag to compare

Bug Fixes

  • Fix "function get_req_message/1" compiler warning.

Image version 0.61.0

01 Jul 21:19

Choose a tag to compare

Enhancements

  • Adds Image.from_req_stream/2. This function returns a Vix.Vips.Image.t/0 from streaming a Req request using the Req.get/2 option into: :self,

Image version 0.60.0

01 Jul 21:18

Choose a tag to compare

Breaking Changes

  • Image.Math.maxpos/2 is renamed to Image.Math.top_n/2 to better reflect its intent. The keyword options argument is also replaced with a simple integer argument n.

  • Image.Math.minpos/2 is renamed to Image.Math.bottom_n/2 to better reflect its intent. The keyword options argument is also replaced with a simple integer argument n.

  • The return value from Image.Math.top_n/2 and Image.Math.bottom_n/2 have changed. They will now return the form {max, max_x, max_y, [{x_max_1, y_max_1}, {x_max_2, y_max_2}, ...]}.

Bug Fixes

  • Improve the error messages for Image.crop/5 when the crop bounding box is invalid. Closes #190.

Enhancements

  • Add Image.band_and/1, Image.band_or/1 and Image.band_xor/1 to apply the appropriate boolean operation across the bands of an image.

  • Add new (and different) Image.Math.maxpos/2 and Image.Math.minpos/2 which return only coordinates whose values match the image maximum or minimum.

Image version 0.59.3

27 Apr 01:46

Choose a tag to compare

Bug Fixes

  • Fix :compression option handling for Image.write/2 when the image type is .heic or :avif. Thanks to @olivermt for the report. Closes #189.

Image version 0.59.2

21 Apr 06:09

Choose a tag to compare

Bug Fixes

  • Fixes Image.rounded/1 and Image.squircle/1 when the image has an alpha band. Thanks to @Neophen for the report. Closes #182.

Image version 0.59.1

20 Apr 23:50

Choose a tag to compare

Deprecation

  • The option :fontfile to Image.Text.text/2 is deprecated in favour of :font_file to be compatible with other functions that use the same option name.

Bug Fixes

  • Remove pattern matching on Stream.t in Image.open/2. Thanks to @dcrck for the PR. Closes #187.

  • Fix Image.Text.text/2 when :height is specified but not :width. In this case an error is returned since :height can only be specified if :width is also specified. Thanks to @Neophen for the report. Closes #185.

  • Fix Image.Text.text/2 when the option :font_weight is specified. The options :font_weight and :letter_spacing are implemented by wrapping the text in a Pango markup span tag. If the string parameter starts with <span then these two options are ignored since this implies the user is taking full control of the markup. Closes #183.

  • Add option documentation for :font_file to Image.Text.text/2 and note the requirement to also specify :font if :font_file is specified.

  • Clarify that Image.Text.text/2 option :font_file is not supported on MacOS. On that platform, only FontBook fonts are supported. It is known to work on Linux. The status on Windows is currently unknown by the author - feedback would be welcome.

Image version 0.59.0

13 Mar 22:09

Choose a tag to compare

Breaking Change

  • Image.radial_distortion_correction/5 and Image.vignette_correction/4 have moved to a new library image_lens_correction.

Enhancements

  • Tolerate non-compliant null-terminated datatime strings in Exif. Thanks to @hansihe for the PR. Closes #181.

  • Add Image.Math.max/1, Image.Math.min/1, Image.Math.max!/1, Image.Math.min!/1 and Image.Complex.polar/1.

Image version 0.58.0

11 Mar 02:25

Choose a tag to compare

Enhancements

  • Add Image.barrel_correction/5 to correct barrel distortion in an image.

  • Add Image.Math.abs/1.