Search packages, repositories and app categories

Package detailsv3.0.0

isolate_image_compress

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

30-day downloads
83
Likes
24
Pub points
160

Install package

flutter pub add isolate_image_compress

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

IsolateImageCompress is a Dart package designed to compress and resize images using isolates, ensuring non-blocking performance in Flutter applications. By leveraging IsolateFlutter, it offloads image processing tasks from the main thread, improving app responsiveness during intensive operations. Ideal for handling large images or batches of images without freezing the UI. The package supports efficient memory usage and seamless integration with existing Flutter workflows.

Use cases

  • Compressing user-uploaded images
  • Resizing images before upload
  • Batch processing of multiple images
  • Improving UI responsiveness during image manipulation
  • Handling high-resolution photos efficiently

Key features

  • Runs image processing in isolates
  • Non-blocking UI operations
  • Supports compression and resizing
  • Efficient memory management
  • Simple integration with Flutter

Suitable for

  • Apps requiring real-time image processing
  • Media-heavy applications
  • Image upload features
  • Performance-critical apps
  • Developers seeking thread-safe image operations

Considerations

  • Requires understanding of isolates
  • Limited platform support mentioned
  • May need additional configuration for complex workflows
  • Not suitable for simple, single-image tasks
  • Depends on IsolateFlutter for core functionality

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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! ❤️

Categories

Dependencies

Dependency list 2 items

  • image^4.9.1
  • isolate_flutter^4.0.0

Source repository

Projects using this package