π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Don't use isolate for compression
laurenspriem3bda83015617
diff --git a/mobile/lib/services/machine_learning/face_thumbnail_generator.dart b/mobile/lib/services/machine_learning/face_thumbnail_generator.dartindex fb77f35990..4980f2e904 100644--- a/mobile/lib/services/machine_learning/face_thumbnail_generator.dart+++ b/mobile/lib/services/machine_learning/face_thumbnail_generator.dart@@ -46,10 +46,8 @@ class FaceThumbnailGenerator extends SuperIsolate {'faceBoxesList': faceBoxesJson,},).then((value) => value.cast<Uint8List>());- final compressedFaces = await _computer.compute<Map, List<Uint8List>>(- compressFaceThumbnails,- param: {'listPngBytes': faces},- );+ final compressedFaces =+ await compressFaceThumbnails({'listPngBytes': faces});_logger.fine("Compressed face thumbnails from sizes ${faces.map((e) => e.length / 1024).toList()} to ${compressedFaces.map((e) => e.length / 1024).toList()} kilobytes",);diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dartindex 0ccb5cd815..49471ea87b 100644--- a/mobile/lib/utils/image_ml_util.dart+++ b/mobile/lib/utils/image_ml_util.dart@@ -564,7 +564,7 @@ Future<List<Uint8List>> compressFaceThumbnails(Map args) async {e,s,);- return listPngBytes;+ rethrow;}}