Releases: elixir-image/image
Image version 0.54.4
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
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 withnil
. -
Decode additional tags:
-
Exif tag
0xA005
, Interop Offset. The value is in internal file pointer so has no meaningful interpretation inimage
. -
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
Bug Fixes
-
Return the updated
t:Plug.Conn.t/0
when callingImage.write/2
with the destination being a plug. Thanks to @LostKobrakai for the issue. Closes #159. -
Fixes
Image.Application
to useImage.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
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
Image version 0.52.2
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
Bug Fixes
- Fix including
Image.Nx
only ifNx
is configured. Closes #143.
Image version 0.52.0
Enhancements
-
Adds
:background_color
option toImage.flatten/2
. -
Add
Image.Nx
to host someNx
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
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
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 is1
. In addition, the implementation ofImage.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 inconfig.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 supportssrgb_to_hsv
.