- Source: https://github.com/webmproject/libwebp
- Version: v0.6.1
- Docker
See example.html
Returns the version of libwebp as a number. va.b.c is encoded as 0x0a0b0c
Allocates an RGBA buffer for an image with the given dimension.
Frees a buffer created with create_buffer.
Encodes the given image with given dimension to WebP. quality is a number between 0 and 100. The higher the number, the better the quality of the encoded image. The result is implicitly stored and can be accessed using the get_result_*() functions.
Frees the result created by encode().
Returns the pointer to the start of the buffer holding the encoded data.
Returns the length of the buffer holding the encoded data.