-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
sharp 0.27.0 - heif: Unsupported feature: Unsupported codec #2518
Comments
Support in sharp for HEIC images that use the patent-encumbered HEVC codec has only ever been via a globally-installed libvips so you will need to retain this step. |
Strange, I had used the custom compiled libvips 8.10.5/sharp 0.27.0 with my project and was receiving basically the same errors. However, I'm not able to reproduce it in my minimal sample. I guess there's something slightly more sinister going on with my build. Thanks again for the eyes, and for your hard work on this project. It's phenomenal! |
Small note for those who may dig this up later. The issue I was having when I compiled in
This was after calling const d = fs.readFileSync('./input.heic');
const img = sharp(d);
const b = sharp(await img.toBuffer()); I'm not entirely sure why we were doing This resolved the issue. |
@lovell hey mate - I know this is a closed issue - but I've run into the exact error being raised when using the latest sharp module We're rolling our own libvips using brew https://formulae.brew.sh/formula/vips I rolled the version back to sharp |
@david-taggun Please make sure the |
I'm attempting to upgrade our version of sharp from 0.25.3 to 0.27.0. We used to compile our own version of libvips to build in support for HEIC/HEIF images, but per #1105 (comment) we have removed this step.
That being said, I'm now getting issues when I attempt to do any processing on an HEIC image. This used to work when we had 0.25.3.
Node Version: 14.14.0 as well as 14.15.3
Sharp Version: 0.27.0
Operating System: Windows 10 64bit as well as Debian Buster
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?Using sharp 0.27.0
What are the steps to reproduce?
Run the above code in nodejs, and observe the following:
This is occurring with ALL
heic
format images that I am able to find.What is the expected behaviour?
We are able to perform operations on the loaded image data, and write it out as a JPEG.
Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?
See above.
Are you able to provide a sample image that helps explain the problem?
sample1.zip
What is the output of running
npx envinfo --binaries --system
?The text was updated successfully, but these errors were encountered: