搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案