Function versatiles::shared::img2jpg

source ·
pub fn img2jpg(image: &DynamicImage) -> Result<Blob>
Expand description

Encodes a DynamicImage into JPEG format and returns it as a Blob.

Arguments

  • image - A DynamicImage object representing the image to encode.

Returns

A Blob object containing the JPEG-encoded image.