I
Immich•2y ago
rbapo

Unable to change Face Thumbnail

Hey folks, Ever since the ability to change the face thumbnail I've been trying to change some of the feature photos... but I always run into the below error in immich_microservces regardless of the photo that I choose:
[Nest] 7 - 08/05/2023, 3:55:05 AM ERROR [JobService] Unable to run job handler: Error: Expected integer for width but received -2 of type number
[Nest] 7 - 08/05/2023, 3:55:05 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:19: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/05/2023, 3:55:05 AM ERROR [JobService] Object:
[Nest] 7 - 08/05/2023, 3:55:05 AM ERROR [JobService] Unable to run job handler: Error: Expected integer for width but received -2 of type number
[Nest] 7 - 08/05/2023, 3:55:05 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:19: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/05/2023, 3:55:05 AM ERROR [JobService] Object:
Is this a known issue?
4 Replies
Alex Tran
Alex Tran•2y ago
Have you rerun the "face detection" job on all faces when the feature was introduced?
rbapo
rbapoOP•2y ago
Yeah, I ran it manually a few times, should I do it again? Just to make sure I'm not misleading you here... Here's what's happening: 1. I open 'Explore 2. At the top I have a list of faces 3. I click one of the faces 4. In the screen that opens I see all of the pictures of that person 5. I click on the user's thumbnail on the top left 6. A new screen with "Select feature photo" opens up. 7. I click one of the photos. Then the error above shows up in the immich_microservices container The photo does not get changed
Alex Tran
Alex Tran•2y ago
I suspect that you ran it before the feature was implemented. Can you try to run detect face for all again ?
rbapo
rbapoOP•2y ago
Sure thing 🙂 I’ll update if that fixed it Yup, that fixed it!! Thank you 🙂

Did you find this page helpful?