Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Change min Width/Height value during compress

Neeraj Gupta36d45c777407
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<ZoomableImage> {
quality: 85,
);
} else {
- compressedFile = await FlutterImageCompress.compressWithFile(file.path);
+ compressedFile = await FlutterImageCompress.compressWithFile(
+ file.path,
+ minHeight: 8000,
+ minWidth: 8000,
+ );
}
if (compressedFile != null) {