A Flutter FFI plugin for merging images vertically using Rust.
- Fast image merging using Rust native code
import 'package:image_combine/image_combine.dart';
void main() async {
// Initialize the plugin
await ImageCombine.instance.initialize();
// Merge images vertically
final result = await ImageCombine.instance.mergeImagesVertically(
imageBuffers: [image1Bytes, image2Bytes, image3Bytes],
maxSizeKb: BigInt.from(2048),
);
}
Test conditions:
- Three 3024×4032 images
- Each image ~2MB in size
- No max size specified
- Tested in profile mode
Device | Processing Time |
---|---|
Pixel 8 Pro | ~900ms |
iPhone 15 Pro Max | ~500ms |
iPad Pro M4 | ~400ms |
Macbook Pro M1 Max | ~500ms |
- ✅ Android
- ✅ iOS
- ✅ MacOS