You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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