Elixir extension for libvips
new_image_from_list
by @akash-akya in https://github.com/akash-akya/vix/pull/105
Full Changelog: https://github.com/akash-akya/vix/compare/v0.17.0...v0.18.0
Few operations such as min
returns operation related metadata as last value of the returned tuple.
Previously, this value was a keyword list, now it is changed to a map to make it easy to access a single value from the metadata more intuitively when metadata contains multiple values.
If your code relies on value being a list then your code will break. You have to change to use map instead.
# previously
{:ok, out, [distance: distance]} = Vix.Vips.Operation.fill_nearest(image)
# should be changed to
{:ok, out, %{distance: distance}} = Vix.Vips.Operation.fill_nearest(image)
If you are accessing values using access
protocol, like opt[:field]
then no change is needed.
{:ok, min, opt} = Vix.Vips.Operation.min(image)
# no change needed
x = opt[:y]
Previously in certain cases few operations used to return empty metadata as last value of tuple for example Operation.profile!
used to return {Image.t(), Image.t(), []}
, even when we know that the operation does not have any additional output values. With this release we don't, Operation.profile!
now returns {Image.t(), Image.t()}
. Please change your code accordingly and test.
Full Changelog: https://github.com/akash-akya/vix/compare/v0.16.4...v0.17.0
Full Changelog: https://github.com/akash-akya/vix/compare/v0.16.3...v0.16.4
Full Changelog: https://github.com/akash-akya/vix/compare/v0.16.2...v0.16.3
Release to test prebuilt package for armv7l
build_scripts
in the hex packageFull Changelog: https://github.com/akash-akya/vix/compare/v0.16.1...v0.16.2
~/..
paths for VIPS.Image.Image.write_to_file by @mindreframer in https://github.com/akash-akya/vix/pull/88
Full Changelog: https://github.com/akash-akya/vix/compare/v0.16.0...v0.16.1
With the new release, Vix will use prebuilt libvips binary over the libvips provided by the platform. This might break your code if you were relaying any operation which are not present in the prebuilt libvips. Please test the latest version first before using. You should see compilation failure if you are using any such function.
If you want to continue using platform provided libvips over the prebuilt binary, please check the document: https://github.com/akash-akya/vix#pre-compiled-nif-and-libvips
Full Changelog: https://github.com/akash-akya/vix/compare/v0.15.1...v0.16.0