webp
webp copied to clipboard
WebP Image Conversion Library
If we encode a WebP animation with many frames, caching all frames into a Vec and then adding them all to the encoder at once is not a good approach....
```toml webp = "0.2.7" ``` ```rust fn main() { const WIDTH: usize = 4; const HEIGHT: usize = 4; // create an RGBA image, note all the alpha values are...
I did some chores :)
When I use the `Encoder` to load a `DynamicImage`, and then encode that image to webp, the `encode` function returns `WebPMemory`. The issue is that I want to perform more...
I created a crate that downloads pre-built libwebp binary files from Google and links to them. By doing this, we effectively avoid any potential issues with local builds, including upstream...
This can be reproduced by running the `convert` example. valgrind logs: ``` valgrind --tool=memcheck --leak-check=yes ./target/release/examples/convert ==312736== Memcheck, a memory error detector ==312736== Copyright (C) 2002-2022, and GNU GPL'd, by...
If you get any image that is 5000px wide and 3000px tall, and you have 128 mb of ram. You will get a segfault. Shouldn't the encoder "know" how much...
I compress an image weighing 1.9 mb and a resolution of 750 by 16000 pixels (16000 pixels - length), and the output I get an image weighing 0 bytes in...
``` ... cargo:warning=#include cargo:warning= ^~~~~~~~~~ cargo:warning=1 error generated. exit status: 1 --- stderr error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "/Users/leping/.cargo/registry/src/github.com-1ecc6299db9ec823/libwebp-sys-0.4.2/vendor" "-Wall" "-Wextra" "-fvisibility=hidden" "-DNDEBUG=1" "-D_THREAD_SAFE=1" "-o"...