increase quality parameter

This commit is contained in:
Haafingar 2020-06-03 13:06:03 +10:00
parent 6a12517105
commit edd20dd83c

View File

@ -255,7 +255,7 @@ public class BitmapUtil {
public static InputStream toCompressedJpeg(Bitmap bitmap) {
ByteArrayOutputStream thumbnailBytes = new ByteArrayOutputStream();
bitmap.compress(CompressFormat.JPEG, 85, thumbnailBytes);
bitmap.compress(CompressFormat.JPEG, 95, thumbnailBytes);
return new ByteArrayInputStream(thumbnailBytes.toByteArray());
}