pub struct EnabledFeatures {
pub progressive: bool,
pub max_jpeg_width: i32,
pub max_jpeg_height: i32,
}
impl Default for EnabledFeatures {
fn default() -> Self {
Self {
progressive: true,
max_jpeg_width: 16386,
max_jpeg_height: 16386,
}
}
}
impl EnabledFeatures {
pub fn all() -> Self {
Self {
progressive: true,
max_jpeg_height: i32::MAX,
max_jpeg_width: i32::MAX,
}
}
}