encodeJpg function

List<int> encodeJpg(
  1. Image image, {
  2. int quality = 100,
})

Encode an image to the JPEG format.

Implementation

List<int> encodeJpg(Image image, {int quality = 100}) =>
    JpegEncoder(quality: quality).encodeImage(image);