sejda-pdf / webp-imageio

Java ImageIO WebP support
Apache License 2.0
198 stars 74 forks source link

Unable to open WebP images on Mac M1 processor. #33

Open mcpierce opened 1 year ago

mcpierce commented 1 year ago

Will there be support provided for Mac M1 chips in future? I have a project that's unable to build on Mac M1 computers due to there being no webp-imageio library supporting that CPU.

ahalma commented 10 months ago

I have the same issue. Is there a workaround on Mac M1/M2? Maybe add the binary webp libs in a folder here or there?

mcpierce commented 10 months ago

I have the same issue. Is there a workaround on Mac M1/M2? Maybe add the binary webp libs in a folder here or there?

We dumped this library from our project since they've never bothered to reply to reported issues. We're using the following instead: com.twelvemonkeys.imageio:imageio-webp:3.9.4

Works on all of our supported platforms, including Mac M1/M2.

ahalma commented 10 months ago

Thanks @mcpierce for your tip. Twelvemonkeys looks great. Unfortunately it does not seem to support writing webp. (I'd like to convert uploaded images to webp automatically and serve those). Any chance you solved that as wel? ;)

mcpierce commented 10 months ago

Thanks @mcpierce for your tip. Twelvemonkeys looks great. Unfortunately it does not seem to support writing webp. (I'd like to convert uploaded images to webp automatically and serve those). Any chance you solved that as wel? ;)

Our project hasn't had that requirement as of yet. But if we do that in future, I'll let you know what we find.

ahalma commented 10 months ago

FYI, I came across this fork and it works out the box on my Mac M2. For both reading and writing Webp. It uses the JNI route.

https://github.com/darkxanter/webp-imageio https://mvnrepository.com/artifact/io.github.darkxanter/webp-imageio/0.3.2