image2
A Rust library focused on generic image processing for a wide range of datatypes. stb_image is used as the default encoder/decoder and supports the following formats:
- JPEG [RW]
- PNG [RW]
- TGA [RW]
- BMP [RW]
- PSD [R]
- GIF [R]
- HDR [RW]
Additional formats are provided by:
Optional crate features
raw
- Enables support for many RAW formats
v4l
- Enables support for webcam capture on Linux
ser
- Automatically derive serde traits for images and many other datatyes
parallel
- Uses rayon to iterate over pixels in parallel (enabled by default)
Installation
Add the following to your Cargo.toml
:
[]
= "0.7"