π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Use generated face crops and crop it using the new method
ashilknab5985a08b58
diff --git a/mobile/lib/ui/viewer/file_details/face_widget.dart b/mobile/lib/ui/viewer/file_details/face_widget.dartindex 4caf1305f4..52f173377f 100644--- a/mobile/lib/ui/viewer/file_details/face_widget.dart+++ b/mobile/lib/ui/viewer/file_details/face_widget.dart@@ -20,7 +20,7 @@ import "package:photos/utils/face/face_box_crop.dart";import "package:photos/utils/thumbnail_util.dart";// import "package:photos/utils/toast_util.dart";-const useGeneratedFaceCrops = false;+const useGeneratedFaceCrops = true;class FaceWidget extends StatefulWidget {final EnteFile file;diff --git a/mobile/lib/utils/face/face_box_crop.dart b/mobile/lib/utils/face/face_box_crop.dartindex 9bf36fbdd8..7d032998a0 100644--- a/mobile/lib/utils/face/face_box_crop.dart+++ b/mobile/lib/utils/face/face_box_crop.dart@@ -5,8 +5,8 @@ import "package:photos/core/cache/lru_map.dart";import "package:photos/face/model/box.dart";import "package:photos/models/file/file.dart";import "package:photos/models/file/file_type.dart";+import "package:photos/utils/face/face_util.dart";import "package:photos/utils/file_util.dart";-import "package:photos/utils/image_ml_isolate.dart";import "package:photos/utils/thumbnail_util.dart";import "package:pool/pool.dart";@@ -37,7 +37,8 @@ Future<Map<String, Uint8List>?> getFaceCrops(faceBoxes.add(e.value);}final List<Uint8List> faceCrop =- await ImageMlIsolate.instance.generateFaceThumbnailsForImage(+ // await ImageMlIsolate.instance.generateFaceThumbnailsForImage(+ await generateJpgFaceThumbnails(imagePath,faceBoxes,);