I
Immich2y ago
Darren

people feature photo doesn't update

I get the following error in _microservices after attempting to change the feature photo for a person (but a success message in the UI):
[Nest] 7 - 08/12/2023, 5:04:21 AM ERROR [JobService] Unable to run job handler: Error: Expected integer for width but received -2 of type number
[Nest] 7 - 08/12/2023, 5:04:21 AM ERROR [JobService] Error: Expected integer for width but received -2 of type number
at Object.invalidParameterError (/usr/src/app/node_modules/sharp/lib/is.js:124:10)
at Sharp.<anonymous> (/usr/src/app/node_modules/sharp/lib/resize.js:442:16)
at Array.forEach (<anonymous>)
at Sharp.extract (/usr/src/app/node_modules/sharp/lib/resize.js:437:38)
at MediaRepository.crop (/usr/src/app/dist/infra/repositories/media.repository.js:20:14)
at FacialRecognitionService.handleGenerateFaceThumbnail (/usr/src/app/dist/domain/facial-recognition/facial-recognition.services.js:149:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /usr/src/app/dist/domain/job/job.service.js:104:37
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:342:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:525:24)
[Nest] 7 - 08/12/2023, 5:04:21 AM ERROR [JobService] Object:
{
"personId": "ba3ab12f-c532-4499-92ed-ae8901fb6c3c",
"assetId": "ea5f8d59-8596-4b40-8480-b63bc995ad87",
"boundingBox": {

"x1": 0,

"x2": 0,

"y1": 0,
"y2": 0
},
"imageHeight": 0,
"imageWidth": 0
}
[Nest] 7 - 08/12/2023, 5:04:21 AM ERROR [JobService] Unable to run job handler: Error: Expected integer for width but received -2 of type number
[Nest] 7 - 08/12/2023, 5:04:21 AM ERROR [JobService] Error: Expected integer for width but received -2 of type number
at Object.invalidParameterError (/usr/src/app/node_modules/sharp/lib/is.js:124:10)
at Sharp.<anonymous> (/usr/src/app/node_modules/sharp/lib/resize.js:442:16)
at Array.forEach (<anonymous>)
at Sharp.extract (/usr/src/app/node_modules/sharp/lib/resize.js:437:38)
at MediaRepository.crop (/usr/src/app/dist/infra/repositories/media.repository.js:20:14)
at FacialRecognitionService.handleGenerateFaceThumbnail (/usr/src/app/dist/domain/facial-recognition/facial-recognition.services.js:149:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /usr/src/app/dist/domain/job/job.service.js:104:37
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:342:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:525:24)
[Nest] 7 - 08/12/2023, 5:04:21 AM ERROR [JobService] Object:
{
"personId": "ba3ab12f-c532-4499-92ed-ae8901fb6c3c",
"assetId": "ea5f8d59-8596-4b40-8480-b63bc995ad87",
"boundingBox": {

"x1": 0,

"x2": 0,

"y1": 0,
"y2": 0
},
"imageHeight": 0,
"imageWidth": 0
}
4 Replies
shenlong-tanwen
Did you run the Recognize Faces job for All assets?
Darren
DarrenOP2y ago
The "this will also clear named people" scared me away from that...is that necessary for the feature photo to update?
shenlong-tanwen
Yes, this is a one time thing to add the required co-ordinates of faces used for this feature. This was also mentioned in the changelog, below the demo video of this feature https://github.com/immich-app/immich/releases/tag/v1.66.0
GitHub
Release v1.66.0 · immich-app/immich
Release v1.66.0 - 07/04/2023 Welcome to release v1.66.0 of Immich. This release focuses on refactoring the server code and adding enhancements to the web timeline and facial recognition features. S...
Darren
DarrenOP2y ago
Ah, I jumped several versions and didn't have faces before, so I assumed that the job ran by itself. I'll give that a try, thanks!

Did you find this page helpful?