gify 1.0.3 copy "gify: ^1.0.3" to clipboard
gify: ^1.0.3 copied to clipboard

outdated

Make GIF with video and images, control speed with fps, set size when create GIF

gify #

Make GIF with video and images

Example ( Live Demo ) #

createGifFromVideo example

Features #

  • getFramesBytes Get Frame images from video as List
  • createGifFromVideo Create GIF from video as Uint8List
  • createGifFromImages Create 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)

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 #

License #

9
likes
0
points
67
downloads

Publisher

unverified uploader

Weekly Downloads

Make GIF with video and images, control speed with fps, set size when create GIF

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cross_file, ffmpeg_kit_flutter, flutter, flutter_web_plugins, js, path_provider, plugin_platform_interface, universal_html

More

Packages that depend on gify

Packages that implement gify