sharp-heic-lambda-layer icon indicating copy to clipboard operation
sharp-heic-lambda-layer copied to clipboard

It seems that av1 compression is not supported

Open faradaytrs opened this issue 1 year ago • 6 comments

When i try to generate avif image with sharp (which is basically just heif with av1 compression) i get: Error: heifsave: Unsupported compression

faradaytrs avatar Jul 09 '24 08:07 faradaytrs

It seems that libaom is disabled, why?

faradaytrs avatar Jul 09 '24 09:07 faradaytrs

I'm experiencing the same issue, any ideas @zoellner ?

chriswritests avatar Jul 09 '24 15:07 chriswritests

I attempted to add it at some point but the build wasn't stable. I forgot what the issue was. Since I don't need the support for my projects it's not a priority for me but if you want to create a PR that produces a stable build with libaom I'm happy to include it. Please include some instructions/example code for me to test it.

zoellner avatar Jul 09 '24 16:07 zoellner

@zoellner I actually solved it for myself, https://raw.githubusercontent.com/faradaytrs/sharp-heic-lambda-layer/main/layer/Makefile What do you mean build was unstable? I use this version in production right now and it's absolutely stable.

faradaytrs avatar Jul 10 '24 04:07 faradaytrs

I'm experiencing the same issue, any ideas @zoellner ?

you can build from my fork https://github.com/faradaytrs/sharp-heic-lambda-layer/

faradaytrs avatar Jul 10 '24 04:07 faradaytrs

I also tried to replace aom with dav1d+rav1e, I got a working build, but it happened to be slower than libaom on real data and picture was larger.

faradaytrs avatar Jul 12 '24 10:07 faradaytrs