mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 18:57:43 +00:00
increase quality parameter
This commit is contained in:
parent
6a12517105
commit
edd20dd83c
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user