From 36d45c77740797eb3a8ddf9d8dc499f5bcbda791 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 11 Aug 2025 11:32:34 +0530 Subject: [PATCH] Change min Width/Height value during compress --- mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart b/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart index 6ff4a7ba7e..85e4d2fb4c 100644 --- a/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart +++ b/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart @@ -502,7 +502,11 @@ class _ZoomableImageState extends State { quality: 85, ); } else { - compressedFile = await FlutterImageCompress.compressWithFile(file.path); + compressedFile = await FlutterImageCompress.compressWithFile( + file.path, + minHeight: 8000, + minWidth: 8000, + ); } if (compressedFile != null) {