Cordova plugin for automatic WebP support on iOS.
C Objective-C
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
libwebp @ 3d97bb7
src/ios
.gitignore
.gitmodules
.npmignore
LICENSE
README.md
package.json
plugin.xml

README.md

cordova-plugin-webp

Cordova Plugin to automatically add WebP support for iOS web views. Works for images referenced in HTML, CSS, or JS, including ones packaged with the app and loaded from the device filesystem.

Installing

With the Cordova command-line tools:

cordova plugin add cordova-plugin-webp

Version History

  • v2.2.0 - Add support for ?cdvwebp=true to force URL intercepting
  • v2.1.0 - Add support for data URIs (<= iOS9 only)
  • v2.0.0 - Updated to WebP 0.5.1, renamed to cordova-plugin-webp
  • v1.2.0 - Updated to WebP 0.4.4
  • v1.1.0 - Updated to WebP 0.4.3, published to npm
  • v1.0.1 - Updated WebP.framework to support arm64
  • v1.0.0 - Initial version, based on libwebp 0.4.2

Acknowledgements

This is largely a repackaging of work by Scott Talbot. You can find his original code at https://github.com/cysp/STWebPDecoder

The WebP.framework bundle was generated from libwebp/iosbuild.sh

$ git submodule update --init
$ cd libwebp
$ ./iosbuild.sh
$ rm -rf ../src/ios/WebP.framework
$ cp -r ./WebP.framework ../src/ios/

Licence

Licensed under the Mozilla Public License Version 2.0.