Skip to content

v0.2.4

Latest

Choose a tag to compare

@gworkman gworkman released this 18 Apr 15:39
00df559

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.