loeeeee / immich-in-lxc

Install Immich in LXC with optional CUDA support
30 stars 3 forks source link

Sharp failed to convert HEIF images #24

Closed loeeeee closed 1 week ago

loeeeee commented 1 week ago

Inside immich/microservices.log,

[Nest] 526 - 09/07/2024, 8:23:56 AM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-preview): Error: upload/upload/57860762-01cd-4204-abdb-e5ad147c82f7/33/45/3345176c-cd80-4463-835f-c7a683b0382a.heic: bad seek to 2540027 heif: Error while loading plugin: No decoding plugin installed for this compression format (11.6003) [Nest] 526 - 09/07/2024, 8:23:56 AM ERROR [Microservices:JobService] Error: upload/upload/57860762-01cd-4204-abdb-e5ad147c82f7/33/45/3345176c-cd80-4463-835f-c7a683b0382a.heic: bad seek to 2540027 heif: Error while loading plugin: No decoding plugin installed for this compression format (11.6003) at Sharp.toFile (/home/immich/app/node_modules/sharp/lib/output.js:90:19) at MediaRepository.generateThumbnail (/home/immich/app/dist/repositories/media.repository.js:69:14) at MediaService.generateThumbnail (/home/immich/app/dist/services/media.service.js:176:48) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGeneratePreview (/home/immich/app/dist/services/media.service.js:141:29) at async /home/immich/app/dist/services/job.service.js:148:36 at async Worker.processJob (/home/immich/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/home/immich/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 526 - 09/07/2024, 8:23:56 AM ERROR [Microservices:JobService] Object: { "id": "0d1eb272-bcdc-4619-9c58-92fab32f7fb1", "source": "upload" }

Or in short,

heif: Error while loading plugin: No decoding plugin installed for this compression format

This is because sharp lacks a custom libvips as its dependency.

A fix for Ubuntu can now be found at branch base-image. That fix has yet to be tested for Debian.

loeeeee commented 1 week ago

Ubuntu fix is applied and tested in branch base-image. The Debian fix is still underway.

Debian needs some package pinning to work.

loeeeee commented 1 week ago

Fixed in 0b89a2e330549187b27ebb9e57607f96f67d1a11