NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #5643 most downloaded on pub.dev
A Flutter package that removes the background from images using an ONNX model.
Latest stable
2.0.1
Last release 3 months ago
27 Jul 2026
Release timing varies
gaps range from 8 days to 10 months
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
10 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
Bounded memory use during mask compositing. removeBg/removeBgBytes previously held the full-resolution decoded source image through the entire RGBA de
removeBg/removeBgBytes previously held the full-resolution decoded source image through the entire RGBA decode/mask-apply/encode pipeline. For typical 12MP+ camera photos this could hold 2-3 full-resolution buffers in memory at once, causing out-of-memory crashes on release builds and mid/low-RAM devices (the model itself only ever used a 320x320 copy). Added BackgroundRemover.instance.maxWorkingDimension (default 1600) — source images with a longest side above this are downscaled, preserving aspect ratio, before mask compositing.Full Changelog : v2.0.0...v2.0.0
Full Changelog: v2.0.0...v2.0.0
Full Changelog: https://github.com/Netesh5/image_background_remover/compare/v2.0.0...v2.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
onnxruntime to flutter_onnxruntime package for better maintenance and supportdispose() method is now asynchronous internally (no user code changes required)services/onnx_session_manager.dart - ONNX Runtime session managementutils/image_processor.dart - Image processing utilitiesutils/mask_processor.dart - Mask processing utilitiesutils/background_composer.dart - Background composition utilitieslib/src/README.mdWHY_NO_ISOLATES.md for detailed explanation.// Migration: comments in the codelib/src/services/onnx_session_manager.dart - Session lifecycle managementlib/src/utils/image_processor.dart - Image processing utilitieslib/src/utils/mask_processor.dart - Mask manipulation utilitieslib/src/utils/background_composer.dart - Background compositionlib/src/README.md - Architecture documentationWHY_NO_ISOLATES.md - Isolate limitations explanationIf upgrading from v1.x:
No code changes required! The dispose call remains the same:
@override
void dispose() {
BackgroundRemover.instance.dispose();
super.dispose();
}
Note: Even though dispose() is async internally, you should not await it in your widget's dispose method because Flutter's dispose must be synchronous.
The public API remains completely backward compatible!
## 1.0.0 ### Fix - Minor Bug fix - Readme file updated
Implemented threshold-based segmentation to refine background removal.
Added addBackground function to add custom color background
addBackground function to add custom color backgroundaddBackground function to change background of colorFull Changelog: https://github.com/Netesh5/image_background_remover/commits/0.0.5
Full Changelog: https://github.com/Netesh5/image_background_remover/commits/0.0.5
Solved ONNX session creation error
### Added - Added assets file.
Removed incompatible platform support.
Initial release of the Background Remover Service Flutter package.
onnx model.initializeOrt(): Initialize the ONNX environment and session.removeBg(Uint8List imageBytes): Removes the background from an input image and returns the image with a transparent background._resizeImage(): Resizes an image to 320x320 for ONNXy model compatibility._imageToFloatTensor(): Converts RGBA image data into a normalized float tensor for model input._applyMaskToOriginalSizeImage(): Applies the generated mask back to the original image size.resizeMask(): Resizes the ONNX output mask to match the original image dimensions.One column per month.