ITADN

heif: Error while loading plugin: Support for this compression format has not been built in (11.6003)

#4506Closedaspx1981 创建于 2026-03-12
question
A
aspx1981commented
<!-- If this issue relates to installation, please use https://github.com/lovell/sharp/issues/new?labels=installation&template=installation.md instead. --> ## Possible bug ### Is this a possible bug in a feature of sharp, unrelated to installation? <!-- Please place an [x] in the box to confirm. --> - [x] Running `npm install sharp` completes without error. - [x] Running `node -e "require('sharp')"` completes without error. If you cannot confirm both of these, please open an [installation issue](https://github.com/lovell/sharp/issues/new?labels=installation&template=installation.md) instead. ### Are you using the latest version of sharp? <!-- Please place an [x] in the box to confirm. --> - [x] I am using the latest version of `sharp` as reported by `npm view sharp dist-tags.latest`. If you cannot confirm this, please upgrade to the latest version and try again before opening an issue. If you are using another package which depends on a version of `sharp` that is not the latest, please open an issue against that package instead. ### What is the output of running `npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp`? npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. 0.34.5 root@sys01:/opt/joplin/packages/lib/node_modules/sharp# npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. System: OS: Linux 6.12 Debian GNU/Linux 13 (trixie) 13 (trixie) CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700T Memory: 26.22 GB / 30.60 GB Container: Yes Shell: 5.2.37 - /bin/bash Binaries: Node: 20.19.2 - /usr/bin/node Yarn: 4.9.2 - /usr/local/bin/yarn npm: 11.11.0 - /usr/local/bin/npm npmPackages: sharp: ^0.34.5 => 0.34.5 npmGlobalPackages: sharp: 0.34.5 ### Does this problem relate to file caching? The default behaviour of libvips is to cache input files, which can lead to `EBUSY` or `EPERM` errors on Windows. Use [`sharp.cache(false)`](https://sharp.pixelplumbing.com/api-utility#cache) to switch this feature off. - [ ] Adding `sharp.cache(false)` does not fix this problem. ### Does this problem relate to images appearing to have been rotated by 90 degrees? Images that contain EXIF Orientation metadata are not auto-oriented. By default, EXIF metadata is removed. - To auto-orient pixel values use the parameter-less [`rotate()`](https://sharp.pixelplumbing.com/api-operation#rotate) operation. - To retain EXIF Orientation use [`keepExif()`](https://sharp.pixelplumbing.com/api-output#keepexif). - [ ] Using `rotate()` or `keepExif()` does not fix this problem. ### What are the steps to reproduce? Using immich direct on debian without container I get below error when I try to upload a HEIC iPhone photo file from my PC. heif: Error while loading plugin: Support for this compression format has not been built in (11.6003) <!-- Please enter steps to reproduce here. --> ### What is the expected behaviour? <!-- Please enter the expected behaviour here. --> ### Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem <!-- Please provide either formatted code or a link to a repo/gist that allows someone else to reproduce here. --> ### Please provide sample image(s) that help explain this problem <!-- Please provide links to one or more images here. -->
关闭于 2026-03-12 1 条评论