Skip to content

Commit

Permalink
[mob][photos] Fix empty facethumbnail due to decoding issue (#5054)
Browse files Browse the repository at this point in the history
## Description

Resolve face thumbnail issue.
  • Loading branch information
laurenspriem authored Feb 13, 2025
2 parents e00cdee + b1ce7b6 commit 2a1c1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mobile/lib/utils/face/face_box_crop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/utils/image_ml_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 2a1c1a3

Please sign in to comment.