pixer 0.0.8
pixer: ^0.0.8 copied to clipboard
High-performance Dart image manipulation backed by Rust FFI for resizing, cropping, encoding, and thumbnail generation in apps and tools.
0.0.8 #
- Provide example and improve pubdev points.
0.0.7 #
- Added externalSize to the NativeFinalizer, which significantly improves Garbage Collection performance.
0.0.6 #
- Breaking: Merged
Pixer.encodeWith(PixerEncoder)intoPixer.encode(PixerEncoder); the oldencode(ImageFormatEnum)overload is gone. Useimage.encode(const PixerPngEncoder())etc. - Breaking: Renamed
ColorType.l/ColorType.latoColorType.luminance/ColorType.luminanceAlpha.ColorType.fromValuenow throwsArgumentErroron unknown codes instead of defaulting torgba. - Breaking: Removed unused
LoadException(load failures already throw specific exceptions). - Fixed:
Pixer.contrastdocs:0.0is the neutral value (not1.0). - Docs: Clarified
Pixer.resizesemantics (fits within the bounds; useresizeExactfor exact sizes). - Docs: Documented
Pixer.brightnessclamping and practical range. - Docs: Added doc comments to all generated
FilterTypeEnum,ImageFormatEnum, andImageErrorCodevariants via the Rust source. - Refactor: Replaced
native_toolchain_rswithnative_toolchain_rust. - Refactor: Simplified Rust code, removed
api.rs. - Refactor: Simplified encoder API and native implementation to keep only JPEG quality as a configurable encoding option.
- Refactor: Marked
PixerMetadatafinal.
0.0.5 #
- Breaking: Replaced
Pixer.encode(ImageFormatEnum, {quality})with encoder objects. - Added
PixerJpegEncoder(quality: ...)with validation.
0.0.4 #
- Added JPEG quality support to
Pixer.encode()viaquality. - Improved binding generation to resolve the active macOS SDK with
xcrun.
0.0.3 #
- Fixed build hook for web platform.
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.