threedollarbill Posted May 25, 2016 Share Posted May 25, 2016 The game I'm working on loads and displays WebP images. It works great on Chrome, but on other browsers such as FireFox, the image won't show because its unsupported. Does anybody here know of a "hack" or a trick to be able to display those images on browsers that don't support WebP? My last resort would be to inform the user that they need to play the game in a broswer that supports WebP, but that would mean that I would lose potential visits from other browsers. Link to comment Share on other sites More sharing options...
chg Posted May 25, 2016 Share Posted May 25, 2016 I presume "WebGL" is a typo? I wouldn't display that the user needs WebP support from there browser, how many end users will understand that that that means "use Google Chrome"? While you might find a crazy person who has already ported a decoding library using emscripten or written one themselves, I feel it's not likely to be that fast; why not just use JPEG/PNG formats and work on all browsers? Link to comment Share on other sites More sharing options...
threedollarbill Posted May 25, 2016 Author Share Posted May 25, 2016 Ah yes I meant "WebP", sorry. I edited the post. I have a folder filled with WebP images (almost 3000+ images). We are using WebP because its smaller in size and it loads faster. Using PNGs would result in slower loading. Although worst comes to worst, yes it is an option. But as much as possible we would like to use WebP. Link to comment Share on other sites More sharing options...
chg Posted May 25, 2016 Share Posted May 25, 2016 Why stop at WebP then why not target FLIF which has no browser support but claims to beat WebP? Javascript WebP library: http://webpjs.appspot.com/ Javascript FLIF library: https://github.com/uprootlabs/poly-flif *I've no experience with either, just Googled and confirmed they exist (and as I suspected are compiled to JS from c/c++ using Emscripten) Link to comment Share on other sites More sharing options...
threedollarbill Posted May 25, 2016 Author Share Posted May 25, 2016 hmmm.. looks like we might have to use png then.. Link to comment Share on other sites More sharing options...
threedollarbill Posted May 28, 2016 Author Share Posted May 28, 2016 To anyone here that has a similar problem, I found this thread but I don't know how to implement it: http://www.html5gamedevs.com/topic/13723-webp-loading/ Link to comment Share on other sites More sharing options...
Recommended Posts