Cargo Features
[dependencies]
image = { version = "0.25.5", default-features = false, features = ["default-formats", "avif", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp", "rayon", "nasm", "color_quant", "avif-native", "benchmarks", "serde"] }
- default = default-formats, rayon
-
These default features are set whenever
image
is added without
somewhere in the dependency tree.default-features = false - default-formats default = avif, bmp, dds, exr, ff, gif, hdr, ico, jpeg, png, pnm, qoi, tga, tiff, webp
-
Format features
- avif default-formats
-
Affects
image::codecs.avif
… - bmp default-formats ico?
-
Affects
image::codecs.bmp
… - dds default-formats
-
Affects
image::codecs.dds
… - exr default-formats
-
Enables exr
Affects
image::codecs.openexr
… - ff default-formats
-
Farbfeld image format
Affects
image::codecs.farbfeld
… - gif default-formats
-
Enables color_quant and gif
color_quant:
Optional dependencies
Affects
image::codecs.gif
… - hdr default-formats
-
Affects
image::codecs.hdr
… - ico default-formats = bmp, png
-
Affects
image::codecs.ico
… - jpeg default-formats
-
Enables zune-core and zune-jpeg
Affects
image::codecs.jpeg
… - png default-formats ico?
-
Enables png
Affects
image::codecs.png
… - pnm default-formats
-
Affects
image::codecs.pnm
… - qoi default-formats
-
Enables qoi
Affects
image::codecs.qoi
… - tga default-formats
-
Affects
image::codecs.tga
… - tiff default-formats
-
Enables tiff
Affects
image::codecs.tiff
… - webp default-formats
-
Enables image-webp
Affects
image::codecs.webp
… - rayon default
-
Other features
Enables multi-threading - nasm
-
Enables use of nasm by rav1e (requires nasm to be installed)
- color_quant
-
Enables color quantization
Enables color_quant
- avif-native
-
Enable native dependency libdav1d
Affects
image::codecs.avif
… - benchmarks
-
Build some inline benchmarks. Useful only during development (requires nightly Rust)
- serde
-
Enables serde