Repository navigation
Adds support for encoding images to multiple formats and a new crop function.
Added
Dither.encode/2andDither.encode!/2now support specifying the output format (AVIF, BMP, EXR, FF, GIF, HDR, ICO, JPEG, PNG, PNM, QOI, TGA, TIFF, and WebP).Dither.crop/5andDither.crop!/5to crop images to specified coordinates and dimensions.Dither.center_crop/3andDither.center_crop!/3to perform a centered crop.
Fixed
- Corrected the bit depth calculation in the quantization function.