rive-app / rive-wasm

Wasm/JS runtime for Rive
MIT License
730 stars 53 forks source link

WebGL runtime doesn't support webp images #344

Open ebhoren opened 9 months ago

ebhoren commented 9 months ago

@rive-app/webgl package is unable to display images imported as webp. This could be very beneficial to reduce .riv filesize while maintaining high quality images.

Am i doing something wrong in my implementation? Thanks you for this awesome application.

zplata commented 8 months ago

Hi - we'll take a look at this. What version of @rive-app/webgl are you using?

ebhoren commented 5 months ago

Hi, sorry for the very long delay of response. I'm using @rive-app/webgl 2.15.6

joelphilippage commented 1 month ago

I have the same issue. The WebGL2 build does not have this issue.

hajarNasr commented 3 weeks ago

I have the same issue with @rive-app/react-webgl, 4.13.7. is there any workaround to that isse?

joelphilippage commented 3 weeks ago

I have the same issue with @rive-app/react-webgl, 4.13.7. is there any workaround to that isse?

If you upgrade to WebGL2 it does not have the issue. The only downside is that there is some weird bug where the edges of png images have a fuzzy white border. I think this is a Rive Renderer issue because they appear that way in the editor as well. This shouldn't be an issue though if all your images are WebP.