搜索插件、代码仓与 APP 分类

插件详情v0.0.3

multi_image_crop

一个 Flutter 包,可在 iOS 和 Android 上同时裁剪多个图像。

AndroidiOS
近 30 天下载
14
喜欢数
29
Pub 分数
125

安装插件

flutter pub add multi_image_crop

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,可在 Android 和 iOS 平台上同时裁剪多张图片。它提供了一个无缝、用户友好的界面,用于批量选择和调整图像裁剪,非常适合需要批量图像处理的应用程序。该包以原生性能为设计重点,确保在各种设备上都能流畅运行。只需使用简单的 pub 命令即可轻松集成到现有的 Flutter 项目中。专为寻求高效图像操作且无需复杂设置的开发者设计。

适合场景

  • 批量图像编辑
  • 用户资料照片管理
  • 电子商务产品图像处理
  • 社交媒体内容准备
  • 图像库组织

主要特点

  • 支持多张图片选择
  • 跨平台兼容性(iOS 和 Android)
  • 直观的裁剪界面
  • 高效的批量处理
  • 通过 pub.dev 的简单集成

适合对象

  • 开发图像密集型应用的开发者
  • 需要批量图像编辑的应用程序
  • 以移动设备为先的设计工作流程
  • 内容管理系统
  • 照片分享平台

使用建议

  • 需要适当的图像访问权限
  • 可能会影响非常大的图像集的性能
  • 仅限iOS和Android平台
  • 依赖于底层原生图像处理库
  • 不适用于服务器端图像处理

原始 README

以下为关联源码仓库的 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.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。