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 whenever load_image is added without default-features = false somewhere in the dependency tree.

mozjpeg

Instead of a Rust-native JPEG decoder, use MozJPEG. It might be faster. It's in C.

Enables mozjpeg and rexif

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.

Enables static of optional libwebp

lcms2-static static?

Link lcms2 statically for redistrbutable binaries.

Enables static of lcms2

static = lcms2-static

Link everything statically

Enables static of optional libwebp