watermark_kit 0.0.2
watermark_kit: ^0.0.2 copied to clipboard
iOS image watermarking plugin for Flutter. Composes a watermark image over a base image in memory and returns encoded PNG/JPEG bytes (Core Image + Metal, no FFmpeg).
0.0.2 #
Added
- Text watermark support for images: new
WatermarkKit.composeTextImage(...)API.- Placement options mirror
composeImage(anchor, margin, offset, units). - Text style:
fontFamily,fontSizePt(orwidthPercentfit),fontWeight,colorArgb,opacity.
- Placement options mirror
- Pigeon host method
WatermarkApi.composeTextand Dart client wiring (MethodChannel fallback retained). - Example app: "Text Watermark" section and Compose Text action.
Changed/Chore
- README updated with text watermark usage and API reference.
0.0.1 #
Initial release.
Added
- iOS image watermarking plugin using Core Image (Metal-backed CIContext under the hood).
- Public API:
WatermarkKit.composeImage(...)that composes a watermark image over a base image and returns encoded bytes.- Options:
anchor,margin(withmarginUnit: 'px'|'percent'),widthPercent,opacity,offsetX/offsetY(withoffsetUnit),format: 'png'|'jpeg',quality(JPEG). - Anchors:
topLeft,topRight,bottomLeft,bottomRight,center.
- Options:
- Pigeon-based typed bridge (Dart/Swift) for
composeImage. - Example app to pick base/watermark from gallery, tweak options, and preview the result.
Changed/Chore
- Simplified README to state iOS support without version numbers.
- Committed example iOS CocoaPods setup (Podfile/lock, xcconfig includes) for reproducible builds.
- Removed unused template tests and misc files; tightened .gitignore.