-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEIF support missing #9
Comments
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. |
It appears that the sharp package request libvips to be installed globally (https://www.libvips.org/). |
I have installed the libvips according to |
He says he does not include it for copyright reasons. |
Install libde265 lbx265, then libheif, then webm, then libvips, then in your script
|
What happens when you are in your Immich users shell and type:
|
Sorry, I accidentally deleted my comment. I finally fixed the problem (now I can try to do a new "clean" run and provide detailed guide how to fix this issue for others - I will add it to this comment) EDIT 04.12.2024 // 11:06
!!! When you install a new version of Immich in the future, you will probably need to repeat steps 4-10.
I tried it but it's not working (for me atleast) |
I have done this as well, I compiled libvips myself, but as far as sharp that is the same process. I actually added it to a script that i have as a branch of this. - Not (Yet) Publicly Shared. |
After some digging in sharp, I found that after one compiled the libvips and installed sharp, one needs to delete something inside node_modules to make sharp use the system library. Here is my solution copied from Immich in LXC # Remove sharp dependency so that it use system library
rm -rf $INSTALL_DIR_app/node_modules/@img/sharp-libvips*
rm -rf $INSTALL_DIR_app/node_modules/@img/sharp-linuxmusl-x64 The |
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)
The text was updated successfully, but these errors were encountered: