Skip to content

Commit

Permalink
Image version 0.43.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Mar 21, 2024
1 parent f128e92 commit 9accf47
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Image 0.43.1

This is the changelog for Image version 0.43.1 released on March 22nd, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-image/image/tags)

### Bug Fixes

* `Image.from_kino/2` and `Image.from_kino!/2` now use the `:file_ref` field in the Kino input structure to identify the required image. This changed was added in [Kino 0.11](https://github.com/livebook-dev/kino/blob/main/CHANGELOG.md#v0110-2023-10-06) which is therefore now a minimum version requirement. Thanks to @kevinschweikert for the PR. Closes #133.

## Image 0.43.0

This is the changelog for Image version 0.43.0 released on February 27th, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-image/image/tags)
Expand Down
14 changes: 11 additions & 3 deletions lib/image.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1104,12 +1104,14 @@ defmodule Image do
* `image` is a a map returned from `Kino.Input.read(image)`
via a `Kino.Input.image/1` input field. The data will have
the following fields:
* `:file_ref` which contains a file reference to the image. It can be extraced into a path with `Kino.Input.file_path/1`
* `:file_ref` which contains a file reference to the image. It can be extraced
into a path with `Kino.Input.file_path/1`
* `:width` which is the width of the image in pixels
* `:height` which is the height of the image in pixels
* `:format` which is the image band format which must be `:rgb`
* `:format` which is the image band format which must be `:rgb`.
* `options` is a keyword list of options
* `options` is a keyword list of options.
### Options
Expand All @@ -1118,6 +1120,9 @@ defmodule Image do
### Notes
* Thus function requries Kino v0.11.0 which in turn requires
Livebook v0.11.0.
* The image is assumed to contain pixel data that is in
unsigned 8-bit format which is common for most web-oriented
images.
Expand Down Expand Up @@ -1167,6 +1172,9 @@ defmodule Image do
### Notes
* Thus function requries Kino v0.11.0 which in turn requires
Livebook v0.11.0.
* The image is assumed to contain pixel data that is in
unsigned 8-bit format which is common for most web-oriented
images.
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Image.MixProject do
use Mix.Project

@version "0.43.0"
@version "0.43.1"
@app_name "image"

def project do
Expand Down Expand Up @@ -66,7 +66,7 @@ defmodule Image.MixProject do

# Kino for rendering in Livebook
if(Version.compare(System.version(), "1.13.0") in [:gt, :eq],
do: {:kino, "~> 0.7", optional: true}
do: {:kino, "~> 0.11", optional: true}
),

# For NX interchange testing and
Expand Down

0 comments on commit 9accf47

Please sign in to comment.