Skip to content

v0.8

Compare
Choose a tag to compare
@jay3332 jay3332 released this 01 Dec 03:01
· 69 commits to main since this release
dbe1048

v0.8 (2022-11-30)

Breaking changes

  • Paste draw struct now stores images and masks by reference instead of by value. This is to prevent
    unnecessary cloning of large images and/or masks.
    • Paste now has two generic lifetime arguments: Paste<'img, 'mask, _>.
    • This also means that Image::paste, Image::paste_with_mask, and Image::with methods now take images and masks
      by reference instead of by value too.

Other changes

  • Add support for drawing lines and polygons using Line and Polygon draw entities
    • Drawing a line or polygon with rounded vertices and a non-centered border position results in undesired output as
      of now.
  • Add new static feature. When enabled, this will statically link any native dependencies
  • Add non-zero width/height assertions to image constructors

Bug fixes

  • Fix GIF decoding bug for images with a global palette
  • Fix conversion using Pixel::from_arbitrary_palette with dynamic pixels

Full Changelog: v0.7...v0.8