π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Reduce invalid pixel noise
Neeraj Gupta107b79eae652
diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dartindex 0705237ba4..ab29eb9192 100644--- a/mobile/lib/utils/image_ml_util.dart+++ b/mobile/lib/utils/image_ml_util.dart@@ -36,7 +36,9 @@ Color readPixelColor() {if (x < 0 || x >= image.width || y < 0 || y >= image.height) {// throw ArgumentError('Invalid pixel coordinates.');- log('[WARNING] `readPixelColor`: Invalid pixel coordinates, out of bounds');+ if (y != -1) {+ log('[WARNING] `readPixelColor`: Invalid pixel coordinates, out of bounds');+ }return const Color.fromARGB(0, 0, 0, 0);}assert(byteData.lengthInBytes == 4 * image.width * image.height);