Cargo Features
[dependencies]
load_image = { version = "3.2.1", default-features = false, features = ["mozjpeg", "jpeg", "stat", "avif", "webp", "webp-static", "lcms2-static", "static"] }
- default = jpeg
-
The
jpeg
feature is set by default wheneverload_image
is added without
somewhere in the dependency tree.default-features = false - mozjpeg
-
Instead of a Rust-native JPEG decoder, use MozJPEG. It might be faster. It's in C.
Affects
profiles::CMYK
,profiles::ADOBE1998
… - jpeg default
-
Enables jpeg-decoder and rexif
Affects
profiles::CMYK
,profiles::ADOBE1998
… - stat
-
Include file creation/modification date in metadata
Affects
image::ImageMeta.created
,image::ImageMeta.modified
… - avif
-
Support reading of AVIF files. Uses a relatively heavy AOM decoder.
Enables aom-decode
- webp webp-static?
-
Support reading of WebP images. By default, it links to system's libwebp.
Enables libwebp
- webp-static = webp
-
Link libwebp statically for redistrbutable binaries.
- lcms2-static static?
-
Link lcms2 statically for redistrbutable binaries.
- static = lcms2-static
-
Link everything statically