= WebP Encoding = [[BR]] {{{#!div class="box" This [/wiki/Encoding] has 3 encoders: * a Cython based encoder using the [https://developers.google.com/speed/webp/docs/api#encodingadvancedapi Advanced Encoding API] (only available in version 0.13 onwards) which is faster * a {{{python-webm}}} fallback * fallback to [/wiki/Encodings/Pillow] [[BR]] And 2 decoders: * a {{{python-webm}}} * fallback to [/wiki/Encodings/Pillow] [[BR]] Be aware that although {{{webp}}} offers efficient compression, it can be quite slow at times, especially in "lossless" mode. }}} {{{#!div class="box" == Updated python-webm == We carry a modified version of {{{python-webm}}}, with the following changes: * [https://code.google.com/p/python-webm/issues/detail?id=2 support for lossless modes] * [#491 memory leak fixed] * removed buggy code in YUV to RGB conversion files - which we don't need since we have our own [/wiki/CSC colourspace conversion] modules. == Source == You can find source snapshots here: [[BR]] [http://xpra.org/src/] The source is kept in xpra's source tree under [/browser/xpra/trunk/src/xpra/codecs/webm src/xpra/codecs/webm] and the tests are under [/browser/xpra/trunk/src/tests/webm src/tests/webm] }}} {{{#!div class="box" == Links and Tickets == * [https://developers.google.com/speed/webp/ WebP] upstream: ''A new image format for the Web'' * [https://code.google.com/p/python-webm/ python-webm] upstream * #491: ''webp is leaking memory'' (same bug in Python Pillow: [https://github.com/python-imaging/Pillow/issues/586 Pillow issue 586]) * [ticket:419#comment:4]: ''better/faster lossless encoding selection'': webp lossless can be extremely slow! }}}