FLUTTER ECOSYSTEM

tejbhansahu/multi_image_crop

一個 Flutter 套件,可在 iOS 與 Android 上同時裁剪多個影像。

multi_image_crop 專案封面
Stars
6
Forks
9
最近推送(UTC)
2024年2月5日
專案狀態
未封存
Tejbhan Sahu  GitHub avatar
GITHUB User

Tejbhan Sahu ↗

InnovationM Technology Solutions Pvt. Ltd.Noida官方網站 ↗
語言DartRubySwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 7 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Multi Image Cropper package for Flutter

A flutter package to crop multiple images at a time on iOS and Android.

Features

Image Cropping Preview

The package comes with a MultiImageCrop.startCropping() method. The method crop and filter only images.

The package is working with files to avoid passing large amount of data through method channels. Files are stored in cache folders of iOS and Android. Thus if there is a need to save actual croped image, ensure to copy the file to other location.

All of the computation intensive work is done off a main thread via dispatch queues on iOS and cache thread pool on Android.

Credits notice

This package use image_crop plugin, original credits goes to him. This plugin fundamentally good in our opinion. The main differences in this package include:

  • Multiple image crop
  • Image filters

Note: This package is still under development, some features are not available yet and testing has been limited.

Using

Create a method and pass list of image or a single image to crop:

MultiImageCrop.startCropping(
    context: context,
    aspectRatio: 4 / 3,
    activeColor: Colors.amber,
    pixelRatio: 3,
    files: List.generate(
        receivedFiles!.length, (index) => File(receivedFiles![index].path)),
    callBack: (List<File> images) {
      setState(() {
        croppedFiles = images;
      });
    });

Support

The following support channels are available at your fingertips:

License

This package is released under Apache 2.0 License.