Skip to content

Commit

Permalink
fix(generation): use captureOnlyBackgroundImageArea instead of captur…
Browse files Browse the repository at this point in the history
…eOnlyDrawingBounds for background cropping
  • Loading branch information
hm21 committed Feb 3, 2025
1 parent d999138 commit 6a6d877
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

# 8.1.4
- **FIX**(generation): Use `captureOnlyBackgroundImageArea` instead of `captureOnlyDrawingBounds` for background cropping.

# 8.1.3
- **PERF**(capture-image): Improved image capture performance by minimizing its impact on the main thread.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ImageRenderService {
double pixelRatio,
) async {
// If cropping is not required, return the image directly
if (!configs.captureOnlyDrawingBounds) {
if (!configs.captureOnlyBackgroundImageArea) {
return boundary.toImage(pixelRatio: pixelRatio);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pro_image_editor
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
version: 8.1.3
version: 8.1.4
homepage: https://github.com/hm21/pro_image_editor/
repository: https://github.com/hm21/pro_image_editor/
issue_tracker: https://github.com/hm21/pro_image_editor/issues/
Expand Down

0 comments on commit 6a6d877

Please sign in to comment.