mirror of
https://github.com/ente-io/ente.git
synced 2025-07-25 19:15:32 +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,
|
faceBoxes,
|
||||||
);
|
);
|
||||||
final Map<String, Uint8List> result = {};
|
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];
|
result[faceIds[i]] = faceCrop[i];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -170,7 +170,7 @@ Future<List<Uint8List>> generateFaceThumbnailsUsingCanvas(
|
|||||||
return faceThumbnails;
|
return faceThumbnails;
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
_logger.severe(
|
_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,
|
e,
|
||||||
s,
|
s,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user