Closed raphaelcastaneda closed 1 month ago
That library looks unmaintained and doesn't work on arm/arm64. The amount of C code in general should also be minimized, I don't think there are any Go heif decoders.
There appears to be a fork of that library that does have arm support, but I'm not sure whether it's worth pursuing that given your other concerns.
@raphaelcastaneda Maybe https://github.com/klippa-app/go-libheif could work
@raphaelcastaneda Maybe klippa-app/go-libheif could work
This is a (really thin) wrapper around the much more active library: https://github.com/strukturag/libheif, so I'd opt to use that directly instead.
I think it's a question for @tulir whether usage of that library here is acceptable. This library is also based on a C implementation, but at least the underlying library (https://github.com/strukturag/libde265) appears to have arm support.
Why do we want the bridge to support a file type that whatsapp doesn't?
Why do we want the bridge to support a file type that whatsapp doesn't?
That's the whole point. So the bridge can convert it to a supported format.
Makes sense 👍
Implements feature request mautrix/whatsapp#635 by converting heic files to jpeg before attaching to a message