OptimizeLevel
pub enum OptimizeLevel { Low = 1, Medium = 2, High = 3,}The optimize parameter automatically applies optimal quality compression to produce an output image with as much visual fidelity as possible, while minimizing the file size.
Variants
= 2
More optimization is allowed, while attempting to preserve the visual quality of the input image.
Trait implementations
impl Clone for OptimizeLevel
impl Debug for OptimizeLevel
impl Serialize for OptimizeLevel
serialize
View sourcewhere __S: Serializer,Parameters
- self: &Self
- __serializer: __S
Returns
_serde::__private228::Result<__S::Ok, __S::Error>