How to load webp images?


#1

I’m using starling framework to make a slot game (on web)
I tried to use https://lib.haxe.org/p/openfl-webp/ but it gave me an error on web while compiling
need to load webp images in my project
can anyone help?


#2

WebP support is browser specific on HTML5:

https://caniuse.com/#search=webp

I would not currently recommend it, unless you also have a backup for browsers that do not support it