Skip to content

Releases: protolux-electronics/dither

v0.2.4

18 Apr 15:39
00df559

Choose a tag to compare

Adds support for encoding images to multiple formats and a new crop function.

Added

  • Dither.encode/2 and Dither.encode!/2 now support specifying the output format (AVIF, BMP, EXR, FF, GIF, HDR, ICO, JPEG, PNG, PNM, QOI, TGA, TIFF, and WebP).
  • Dither.crop/5 and Dither.crop!/5 to crop images to specified coordinates and dimensions.
  • Dither.center_crop/3 and Dither.center_crop!/3 to perform a centered crop.

Fixed

  • Corrected the bit depth calculation in the quantization function.

v0.2.3

18 Apr 10:09
6873ef7

Choose a tag to compare

Adds contrast adjustment functionality and automatic EXIF orientation.

Added

  • Dither.contrast/2 and Dither.contrast!/2 to adjust image contrast.

Changed

  • Images are now automatically rotated according to their EXIF orientation data upon loading or decoding.

v0.2.2

14 Apr 14:59
e912a78

Choose a tag to compare

Better support for RGBA images and new rotation utility.

Added

  • Support for loading and decoding RGBA images (4 channels).
  • Dither.to_rgb/1 and Dither.to_rgb!/1 to convert images to RGB8.
  • Dither.rotate/2 and Dither.rotate!/2 to rotate images (90, 180, 270 degrees).
  • Explicit channel count check in Dither.dither/2.

Changed

  • Dither.dither/2 now returns {:error, :unsupported_channel_count} if an
    RGBA image is provided without conversion.

v0.2.1

13 Apr 22:10
0682eba

Choose a tag to compare

Adds support for dithering RGB images, as well as custom color palettes

v0.2.0

13 Apr 18:59
bd20ddb

Choose a tag to compare

Adds a new %Dither{} struct (replaces the reference returned from load/1, decode/1, and from_raw/3). Adds metadata to the struct (including image size and channels). Improves documentation, and adds testing

v0.1.1

07 Dec 23:00
500f767

Choose a tag to compare

v0.1.1 release. Fixes Dither.from_raw

v0.1.0

21 Sep 14:25
8f82b3a

Choose a tag to compare

Initial release 🎉