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

插件详情v3.0.0

isolate_image_compress

IsolateImageCompress 是一个用于在隔离区(IsolateFlutter)中压缩和调整图像大小的包。

近 30 天下载
83
喜欢数
24
Pub 分数
160

安装插件

flutter pub add isolate_image_compress

插件介绍

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

IsolateImageCompress 是一个 Dart 包,旨在使用隔离区压缩和调整图像大小,确保在 Flutter 应用中实现非阻塞性能。通过利用 IsolateFlutter,它将图像处理任务从主线程卸载,从而在执行密集操作时提升应用的响应能力。非常适合处理大型图像或图像批次,而不会导致 UI 冻结。该包支持高效的内存使用,并可无缝集成到现有的 Flutter 工作流中。

适合场景

  • 压缩用户上传的图片
  • 上传前调整图像大小
  • 批量处理多个图像
  • 在图像操作期间提升UI响应速度
  • 高效处理高分辨率照片

主要特点

  • 在隔离域中运行图像处理
  • 非阻塞UI操作
  • 支持压缩和调整大小
  • 高效的内存管理
  • 与 Flutter 的简单集成

适合对象

  • 需要实时图像处理的应用程序
  • 媒体密集型应用
  • 图片上传功能
  • 性能关键型应用
  • 寻求线程安全图像操作的开发者

使用建议

  • 需要了解隔离区
  • 提及的平台支持有限
  • 复杂的流程可能需要额外的配置
  • 不适用于简单的单图任务
  • 依赖 IsolateFlutter 实现核心功能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Isolate Flutter

This repository holds three packages. IsolateHttp and IsolateImageCompress are both built on top of IsolateFlutter.

Package Version Description
isolate_flutter 4.0.0 Create and manage isolates
isolate_http 4.0.0 Run http requests in an isolate
isolate_image_compress 3.0.0 Compress and resize images in an isolate

Requirements

Flutter >=3.35.0, Dart ^3.9.0. Verified against Flutter 3.44.

IsolateFlutter

Pub

IsolateFlutter is a useful package for you who want to make and manage Isolate. It is based on dart:isolate so it only support iOS and Android.

IsolateHttp

Pub

IsolateHttp provides a way to launch http package with IsolateFlutter.

IsolateImageCompress

Pub

IsolateImageCompress is a package to compress and resize the images in isolate (IsolateFlutter).

Working on this repository

isolate_http and isolate_image_compress depend on the published isolate_flutter. A pubspec_overrides.yaml in each of them points at the local copy instead, so the whole repository resolves against your working tree. Those overrides are ignored by dart pub publish.

When releasing, publish isolate_flutter first — the other two depend on it.

cd isolate_flutter && flutter test
cd ../isolate_http && flutter test
cd ../isolate_image_compress && flutter test

Author

IsolateFlutter is developed by Thong Dang. You can contact me at thongdn.it@gmail.com

If you like my project, you can support me Buy Me A Coffee or star (like) for it.

Thank you! ❤️

所属分类

依赖

依赖清单 2 项

  • image^4.9.1
  • isolate_flutter^4.0.0

源码仓库

使用此插件的项目