pixer 0.0.2
pixer: ^0.0.2 copied to clipboard
A fast image processing package.
0.0.2 #
- Breaking:
invert()now returns a newPixerinstead of mutating in-place. - Breaking: Removed deprecated
resizeToFit()method (useresize()instead). - Breaking: Renamed FFI functions to align with Rust image crate conventions:
encode->write_tocrop->crop_immrotate_90/180/270->rotate90/180/270flip_horizontal/vertical->fliph/flipvbrightness->brightencontrast->adjust_contrast
- Added metadata caching to avoid redundant FFI calls for
width,height,colorType. - Added bounds validation for
crop()- now throwsInvalidDimensionsExceptionif crop rectangle exceeds image bounds. - Added hash verification for native assets.
- Added
generate_bindings.shscript to automate cbindgen + ffigen workflow. - Improved error handling in load functions - now throws specific exceptions (
IoException,DecodingException,UnsupportedFormatException) instead of genericLoadException. - Improved documentation for
blur()method.
0.0.1 #
- Finalized the Dart API with typed exceptions.
- Added context to exceptions for clearer error messages.
- Added a finalizer and
isDisposedfor safer resource handling.