Open Arvoreen opened 5 months ago
Thanks for the note.
Is "sharp" the only dependency needed for HEIF? The upstream Docker's base image also builds ImageMagick on its own, I figured it's needed for HEIF or RAW support.
Also, if Trixie's libvips supports HEIF, why is "--build-from-source" needed? Shouldn't it automatically pick up libvips support and use it?
Thanks.
I have the same problem. But I can't seem to be able to fix it. I've tried both on trixie and ubuntu 22.04, building my own version of libvips with heif support. Do you have any pointers of how I can fix this?
It appears that the sharp package request libvips to be installed globally (https://www.libvips.org/).
I have installed the libvips according to https://github.com/immich-app/base-images/blob/main/server/bin/build-libvips.sh but immich still lacks support for heif. Do I have to rebuild the installation?
He says he does not include it for copyright reasons.
Install libde265 lbx265, then libheif, then webm, then libvips, then in your script
npm install sharp --build-from-source --verbose --foreground-scripts.
So I set up initially on Debian Bookworm. This version has an older 'libvips' installation, and when sharps gets installed, it uses its prebuilt binaries, which do not include support for HEIF. I managed to solve this myself by upgrading to trixie, then modifying the install.sh script to add '--build-from-source' to the npm install command line for sharp.
I suppose other option would be to manually update or install libvips on Bookworm, then use the same change to the install command above.
This is not really a 'bug report' per-se, but more of a note for anyone else that runs into this problem.
The symptom of this is errors like this in the microservices log file (and missing thumbnails for any photos from an iPhone)