pub struct DefaultSettings {
pub resize_filter: Option<ResizeFilter>,
pub webp: Option<bool>,
pub webp_quality: Option<i32>,
pub jpeg_type: Option<JpegType>,
pub jpeg_quality: Option<i32>,
pub upscale: Option<bool>,
pub allow_video: Option<bool>,
}Fields§
§resize_filter: Option<ResizeFilter>The type of filter to use while resizing an image.
webp: Option<bool>Controls whether or not to default to WebP output when the client supports it. This is equivalent to adding "auto=webp" to all image optimizer requests.
webp_quality: Option<i32>The default quality to use with WebP output. This can be overridden with the second option in the "quality" URL parameter on specific image optimizer requests.
jpeg_type: Option<JpegType>The default type of JPEG output to use. This can be overridden with "format=bjpeg" and "format=pjpeg" on specific image optimizer requests.
jpeg_quality: Option<i32>The default quality to use with JPEG output. This can be overridden with the "quality" parameter on specific image optimizer requests.
upscale: Option<bool>Whether or not we should allow output images to render at sizes larger than input.
allow_video: Option<bool>Enables GIF to MP4 transformations on this service.