toJpeg method
Implementation
Future<JpegImage> toJpeg({
int quality = 100,
}) async {
// TODO Not implemented on the native side
final jpegQuality = quality.clamp(0, 100);
final wrappedValue = wrapped();
final wrappedImage = await AnalysisImageUtils().bgra8888toJpeg(
wrappedValue,
jpegQuality,
);
return wrappedImage.unwrap() as JpegImage;
}