π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix empty facethumbnail due to decoding issue
laurenspriemb1ce7b6edbe6
diff --git a/mobile/lib/utils/face/face_box_crop.dart b/mobile/lib/utils/face/face_box_crop.dartindex c39e164977..c75be4a533 100644--- a/mobile/lib/utils/face/face_box_crop.dart+++ b/mobile/lib/utils/face/face_box_crop.dart@@ -216,7 +216,7 @@ Future<Map<String, Uint8List>?> _getFaceCrops(faceBoxes,);final Map<String, Uint8List> result = {};- for (int i = 0; i < faceIds.length; i++) {+ for (int i = 0; i < faceCrop.length; i++) {result[faceIds[i]] = faceCrop[i];}return result;diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dartindex dd1e4512bc..bdd84d96f1 100644--- a/mobile/lib/utils/image_ml_util.dart+++ b/mobile/lib/utils/image_ml_util.dart@@ -170,7 +170,7 @@ Future<List<Uint8List>> generateFaceThumbnailsUsingCanvas(return faceThumbnails;} catch (e, s) {_logger.severe(- 'Error generating face thumbnails. cropImage problematic input argument: ${faceBoxes[i]}',+ 'Error generating face thumbnails. cropImage problematic input argument: ${i}th facebox: ${faceBoxes[i].toString()}',e,s,);