Releases: elixir-image/image
Image version 0.62.1
Bug Fixes
-
Fix decoding EXIF component configuration if the value is invalid. Fixes #194. Thanks to @ethangunderson for the report.
-
Fix
Image.minimize_metadata/1when the image does not have an author or copyright field.
Image version 0.62.0
Breaking Change
Image.histogram/1previously 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/1is fixed to not normalize histogram entries. Therefore the histogram now returns correct pixel counts. -
Fix
Image.Text.add_background_padding/2when the padding is derived from a base image.
Enhancements
-
Add
Image.to_list/1to return an image as a nested list. -
Added an example for
Image.histogram/1to illustrate what data is returned and how to interpret it.
Image version 0.61.1
Bug Fixes
- Fix "function get_req_message/1" compiler warning.
Image version 0.61.0
Enhancements
- Adds
Image.from_req_stream/2. This function returns aVix.Vips.Image.t/0from streaming aReqrequest using theReq.get/2optioninto: :self,
Image version 0.60.0
Breaking Changes
-
Image.Math.maxpos/2is renamed toImage.Math.top_n/2to better reflect its intent. The keyword options argument is also replaced with a simple integer argumentn. -
Image.Math.minpos/2is renamed toImage.Math.bottom_n/2to better reflect its intent. The keyword options argument is also replaced with a simple integer argumentn. -
The return value from
Image.Math.top_n/2andImage.Math.bottom_n/2have 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/5when the crop bounding box is invalid. Closes #190.
Enhancements
-
Add
Image.band_and/1,Image.band_or/1andImage.band_xor/1to apply the appropriate boolean operation across the bands of an image. -
Add new (and different)
Image.Math.maxpos/2andImage.Math.minpos/2which return only coordinates whose values match the image maximum or minimum.
Image version 0.59.3
Image version 0.59.2
Image version 0.59.1
Deprecation
- The option
:fontfiletoImage.Text.text/2is deprecated in favour of:font_fileto be compatible with other functions that use the same option name.
Bug Fixes
-
Remove pattern matching on
Stream.tinImage.open/2. Thanks to @dcrck for the PR. Closes #187. -
Fix
Image.Text.text/2when:heightis specified but not:width. In this case an error is returned since:heightcan only be specified if:widthis also specified. Thanks to @Neophen for the report. Closes #185. -
Fix
Image.Text.text/2when the option:font_weightis specified. The options:font_weightand:letter_spacingare implemented by wrapping the text in a Pango markupspantag. If thestringparameter starts with<spanthen these two options are ignored since this implies the user is taking full control of the markup. Closes #183. -
Add option documentation for
:font_filetoImage.Text.text/2and note the requirement to also specify:fontif:font_fileis specified. -
Clarify that
Image.Text.text/2option:font_fileis 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
Breaking Change
Image.radial_distortion_correction/5andImage.vignette_correction/4have moved to a new library image_lens_correction.
Enhancements
Image version 0.58.0
Enhancements
-
Add
Image.barrel_correction/5to correct barrel distortion in an image. -
Add
Image.Math.abs/1.