Cargo Features
[dependencies]
quantette = { version = "0.3.0", default-features = false, features = ["pipelines", "colorspaces", "threads", "image", "kmeans"] }
- default = colorspaces, image, kmeans, pipelines, threads
-
These default features are set whenever
quantette
is added without
somewhere in the dependency tree.default-features = false - pipelines default colorspaces
-
Exposes a high-level API via the
ImagePipeline
andPalettePipeline
builder structs. Turn this feature off to reduce compile times if you do not need the high-level API. - colorspaces default = pipelines
-
Allows using CIELAB or Oklab as the quantization color space in the high-level API.
Turn this feature off to reduce compile times if you do not want alternate color spaces. - threads default = rayon
-
Exposes parallel versions of most algorithms.
Affects
color_counts::ColorCountsParallelRemap
,kmeans::palette_par
,kmeans::indexed_palette_par
,wu::palette_par
,wu::indexed_palette_par
… - image default
-
Enables integration with the
image
crate.Enables image
- kmeans default = rand, rand_distr, rand_xoshiro
-
Exposes kmeans as an alternative quatization method which gives higher quality results but is slower to run.
Affects
quantize_method::KmeansOptions
,quantette::kmeans
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.