mirror of
https://github.com/ente-io/ente.git
synced 2025-07-23 20:36:56 +00:00
[mob][photos] Fix empty facethumbnail due to decoding issue (#5054)
## Description Resolve face thumbnail issue.
This commit is contained in:
commit
2a1c1a30e9
@ -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;
|
||||
|
@ -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,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user