Skip to content

[WIP] WebP encoder#514

Closed
jbeich wants to merge 2 commits into
BrowserWorks:masterfrom
jbeich:webp-encoder
Closed

[WIP] WebP encoder#514
jbeich wants to merge 2 commits into
BrowserWorks:masterfrom
jbeich:webp-encoder

Conversation

@jbeich
Copy link
Copy Markdown
Contributor

@jbeich jbeich commented Apr 8, 2018

Rebased from bug 856375 comment 85. HTML5test and probably YouTube (animated thumbnails) detect WebP support via toDataURL e.g.,

> document.createElement('canvas').toDataURL('image/webp').substring(5, 15) == 'image/webp';
< false

Current status: builds fine on x86 and x86_64 but doesn't work.

> document.createElement('canvas').toDataURL('image/webp')
[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1"  data: no]

https://github.com/MrAlex94/Waterfox/blob/96571ea50c0c84825f18e6eda6ae2605ea06f95e/image/encoders/webp/nsWEBPEncoder.cpp#L165
https://github.com/MrAlex94/Waterfox/blob/96571ea50c0c84825f18e6eda6ae2605ea06f95e/media/libwebp/enc/syntax_enc.c#L46

Any clues?

@MrAlex94 MrAlex94 closed this Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants