From 6a6d877899f70748201fc41c48f5b355c6bddce7 Mon Sep 17 00:00:00 2001 From: hm21 Date: Mon, 3 Feb 2025 17:30:40 +0100 Subject: [PATCH] fix(generation): use captureOnlyBackgroundImageArea instead of captureOnlyDrawingBounds for background cropping --- CHANGELOG.md | 3 +++ .../content_recorder/services/image_render_service.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87e802b2..c39357ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/shared/services/content_recorder/services/image_render_service.dart b/lib/shared/services/content_recorder/services/image_render_service.dart index 42fffec2..c421ceda 100644 --- a/lib/shared/services/content_recorder/services/image_render_service.dart +++ b/lib/shared/services/content_recorder/services/image_render_service.dart @@ -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); } diff --git a/pubspec.yaml b/pubspec.yaml index 58f15983..f59e4a98 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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/