Repository navigation
Releases
Releases · protolux-electronics/dither
v0.2.4
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.
v0.2.3
Adds contrast adjustment functionality and automatic EXIF orientation.
Added
Dither.contrast/2andDither.contrast!/2to adjust image contrast.
Changed
- Images are now automatically rotated according to their EXIF orientation data upon loading or decoding.
v0.2.2
Better support for RGBA images and new rotation utility.
Added
- Support for loading and decoding RGBA images (4 channels).
Dither.to_rgb/1andDither.to_rgb!/1to convert images to RGB8.Dither.rotate/2andDither.rotate!/2to rotate images (90, 180, 270 degrees).- Explicit channel count check in
Dither.dither/2.
Changed
Dither.dither/2now returns{:error, :unsupported_channel_count}if an
RGBA image is provided without conversion.