Skip to content

Releases: elixir-image/image

Image version 0.54.4

02 Oct 23:28
Compare
Choose a tag to compare

Bug Fixes

  • Raises minimum Elixir version to 1.14 since that is the minimum requriement now for Nx.

  • Add Elixir 1.14 to the CI matrix. Thanks very much to @@leandrocp for the PR. Closes #164.

  • Fix some EXIF tag decoding. Thanks to @hansihe for the PR. Closes #169.

Image version 0.54.3

05 Sep 22:40
Compare
Choose a tag to compare

Bug Fixes

  • Fix parsing invalid date time in Exif data. When invalid, the raw underlying string is returned.

  • Trim strings in Exif data. As a result, empty strings will be returned now as nil rather than "".

  • Replace a <<0, ....>> sequence in an Exif string value with nil.

  • Decode additional tags:

    • Exif tag 0xA005, Interop Offset. The value is in internal file pointer so has no meaningful interpretation in image.

    • TIFF tag 0xC4A5, Print Image Matching. According to this source the field has no standardised values so the raw value is returned.

Image version 0.54.2

31 Aug 21:05
Compare
Choose a tag to compare

Bug Fixes

  • Return the updated t:Plug.Conn.t/0 when calling Image.write/2 with the destination being a plug. Thanks to @LostKobrakai for the issue. Closes #159.

  • Fixes Image.Application to use Image.bumblebee_configured?/0. Thanks to @mat-hek for the PR. Closes #160.

  • Fix the spec for Image.Video.with_video/2. Thanks to @nikitosing for the report. Closes #162.

Image version 0.54.1

20 Aug 00:57
Compare
Choose a tag to compare

Bug Fixes

  • Adjust Image.Math.-/1 (unary minus) syntax to be compatible on more elixir versions. Should be ok back to Elixir 1.12 depending on vix version support requirement on OTP.

Image version 0.52.3

12 Jul 15:17
Compare
Choose a tag to compare

Bug Fixes

  • Fix Image.Color.sort/2. Thanks to @Solido for the report. Closes #145.

Image version 0.52.2

08 Jul 18:03
Compare
Choose a tag to compare

Bug Fixes

  • Fix the return from Image.contrast/2. Thanks to @RyoWakabayashi for the report and the PR. Closes #144.

Image version 0.52.1

03 Jul 11:01
Compare
Choose a tag to compare

Bug Fixes

  • Fix including Image.Nx only if Nx is configured. Closes #143.

Image version 0.52.0

03 Jul 09:02
Compare
Choose a tag to compare

Enhancements

  • Adds :background_color option to Image.flatten/2.

  • Add Image.Nx to host some Nx convenience functions.

Bug Fixes

  • Fix Image.delta_e/2 to return a float (not an integer)

  • Fix Image.k_means/2 to work with images in color spaces other than sRGB.

Image version 0.51.0

28 Jun 22:26
Compare
Choose a tag to compare

Enhancements

  • Adds Image.to_kino/1 to convert an image to a Kino image struct. Only available if Kino is configured.

  • Adds Image.delta_e!/2

  • Adds Image.reduce_colors!/2

v0.50.0

28 Jun 03:55
Compare
Choose a tag to compare

Enhancements (Image 0.50.0)

  • Adds Image.reduce_colors/2 to reduce the number of colors in an image. Scholar.Cluster.KMeans.fit/2 is used to cluster the colors. The clusters are then used to recolor the image.

Image 0.49.0

This is the changelog for Image version 0.49.0 released on June 28th, 2024. For older changelogs please consult the release tag on GitHub

Enhancements (Image 0.49.0)

  • Updates Image.dominant_color/2 to take an optional :top_n which indicates how many of the most dominant colors to return. The default is 1. In addition, the implementation of Image.dominant_color/2 has been simplified following the advice at libvips/libvips#4016

  • Adds Image.delta_e/3 to calculate a difference between two colors using one of the CIE color difference algorithms.

  • Adds Image.k_means/2 to cluster image colors into a color palette. This function is only available if scholar is configured. As for any Nx installation, performance is affected by configuration options. It is likely that setting the following in config.exs will be a good idea:

config :nx,
  default_backend: EXLA.Backend

config :nx, :default_defn_options,
  compiler: EXLA
  • Adds Image.Color.sort/2 to sort colors perceptually.

  • Adds Image.Color.convert/3 to convert a color from one color space to another. Currently only supports srgb_to_hsv.