pub fn encode_img(
data: ImageData,
typ: ImageOutputType,
filename: &str,
config: &ExtraConfig,
) -> Result<()>Available on crate feature
image only.Expand description
Encodes an image to the specified format and writes it to a file.
data- The image data to encode.typ- The output image format.filename- The path of the file to write the encoded image to.config- Extra configuration.