[mob][photos] Fix empty facethumbnail due to decoding issue (#5054)

## Description

Resolve face thumbnail issue.
This commit is contained in:
Laurens Priem 2025-02-13 12:52:37 +05:30 committed by GitHub
commit 2a1c1a30e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,
);