image-webp
WebP encoding and decoding in pure Rust
0.2.4
65M downloads/mo
#1058 most downloaded on crates.io
image-rs/image-webp
What this package is like to depend on
Last release 12 months ago
27 Aug 2025
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
9 releases · first in 2024
0 releases in the last 12 months
see the full history below
Release timeline
9 releases · Feb 2024 to Aug 2025Releases
latest 9-
0.2.427 Aug 2025Release notes
Open source →Changes:
- Changed default upscaling to bilinear interpolation to match libwebp (#147)
Bug fixes:
- Fixed all remaining divergences against libwebp in loop filtering (#148, #149)
Optimizations:
- Optimized predictors in lossless_transform (#152)
- Improved performance of horizontal loop filtering (#151, #156)
-
0.2.319 Jun 2025Release notes
Open source →Changes:
- Do not reject images with ICC profile bit set but missing ICCP chunk (#143)
Bug Fixes:
- Fixed a bug that caused the last chroma macroblock in the image to be sometimes decoded incorrectly (#144)
-
0.2.209 Jun 2025Release notes
Open source →Changes:
- Do not apply background color to animated images by default to better match libwebp behavior (#135)
Bug Fixes:
- Fixed a bug in the loop filter causing subtly but noticeably incorrect decoding of some lossy images (#140)
Optimizations:
- Remove bounds checks from color transform hot loop (#133)
- Optimize resolving indexed images into RGB colors (#132, #134)
-
0.2.111 Jan 2025Release notes
Open source →Changes:
- Increased the required Rust compiler version to v1.80
Optimizations:
- Removed bounds checks from hot loops in
read_coefficients()(#121) - Faster YUV -> RGBA conversion for a 7% speedup on lossy RGBA images (#122)
- Faster alpha blending for up to 20% speedup on animated images (#123)
- Much faster arithmetic decoding for up to 30% speedup on lossy images (#124)
- Avoid unnecessarily cloning image data for a 4% speedup (#126)
-
0.2.006 Oct 2024Release notes
Open source →Breaking Changes:
WebPDecodernow requires the passed reader implementBufRead.
Changes:
- Add
EncoderParamsto make predictor transform optional.
Bug Fixes:
- Several bug fixes in animation compositing.
- Fix indexing for filling image regions with tivial huffman codes.
- Properly update the color cache when trivial huffman codes are used.
Optimizations:
- Substantially faster decoding of lossless images, by switching to a table-based Huffman decoder and a variety of smaller optimizations.
-
0.1.317 Jul 2024Release notes
Open source →Changes:
- Accept files with out-of-order "unknown" chunks.
- Switched to
quick-errorcrate for faster compliation.
Bug Fixes:
- Fixed decoding of animations with ALPH chunks.
- Fixed encoding bug for extended WebP files.
- Resolved compliation problem with fuzz targets.
Optimizations:
- Faster YUV to RGB conversion.
- Improved
BitReaderlogic. - In-place decoding of lossless RGBA images.
-
0.1.219 Apr 2024Release notes
Open source →- Export
decoder::LoopCount. - Fix decode bug in
read_quantization_indicesthat caused some lossy images to appear washed out. - Switch to
byteorder-litecrate for byte order conversions.
- Export
-
0.1.118 Mar 2024 -
0.1.004 Feb 2024