gify 1.0.0
gify: ^1.0.0 copied to clipboard
Make GIF with video and images
gify #
Make GIF with video and images
Features #
getFramesBytesGet Frame images from video as ListcreateGifFromVideoCreate GIF from video as Uint8ListcreateGifFromImagesCreate GIF from images as Uint8List
Getting started #
Prerequisites #
ios- Minimum target version : 12.1
android- Minimum SDK version : 24
Run example- Example uses
image_picker, so you need to modify your Info.plist (documentation)
- Example uses
Installation #
flutter pub add gify
Usage #
Future<List<Uint8List>?> testFrames() async {
final XFile? videoFile =
await ImagePicker().pickVideo(source: ImageSource.gallery);
if (videoFile != null) {
final result = await _gifyPlugin.getFramesBytes(videoFile, 1);
// Uncomment below code to see result
// print(result);
return result;
}
return null;
}
Future<Uint8List?> testVideoToGif() async {
final XFile? videoFile =
await ImagePicker().pickVideo(source: ImageSource.gallery);
if (videoFile != null) {
final result = await _gifyPlugin.createGifFromVideo(videoFile, 1);
// Uncomment below code to see result
// print(result);
return result;
}
return null;
}
Future<Uint8List?> testImagesToGif() async {
final List<XFile> imageFiles = await ImagePicker().pickMultiImage();
final result = await _gifyPlugin.createGifFromImages(imageFiles, 1);
// Uncomment below code to see result
// print(result);
return result;
}
Contributing #
- Pull Requests are always welcome!
- Please send a Pull Request to https://github.com/swimmingkiim/gify