Skip to content
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

Getting error in formating heic or heif images. #15

Open
Ajay-Bacancy opened this issue Oct 3, 2023 · 3 comments
Open

Getting error in formating heic or heif images. #15

Ajay-Bacancy opened this issue Oct 3, 2023 · 3 comments

Comments

@Ajay-Bacancy
Copy link

This is the x-amz-cf-id header value TLjyVUbQnJInz6NVG_u53VFWVxSEMacbZOrC8xJvOJyFA5RYwarEeg==
I'm not able to format heic file from the bucket it giving me this error error transforming image. original file link is https://fanbasis.s3.us-west-2.amazonaws.com/production/uploads/ljHFdSjOoA80ef54c8c370dcff4e26901ae6302e07.heic

Also If I'm trying to access video file without any tranformatio it give me internal server error.

@bensquire
Copy link

It doesn't look like Sharp (the image library used) supports that format?

lovell/sharp#1105

@achrafsouk
Copy link
Contributor

This is possible actually, but as mentioned in lovell/sharp#1105, it requires a custom, globally-installed libvips that has itself been compiled with support for libheif. While we do not do it today in this code base, you shoud be able to. I've also seen Lambda Layers that facilitates this task. If we see +1 on this issue, we will consider updating the code to support it.

@Vladimir-Buttn
Copy link

There's +1 on here :)
It would very convenient to support heic out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants