mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +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) {
|
public static InputStream toCompressedJpeg(Bitmap bitmap) {
|
||||||
ByteArrayOutputStream thumbnailBytes = new ByteArrayOutputStream();
|
ByteArrayOutputStream thumbnailBytes = new ByteArrayOutputStream();
|
||||||
bitmap.compress(CompressFormat.JPEG, 85, thumbnailBytes);
|
bitmap.compress(CompressFormat.JPEG, 95, thumbnailBytes);
|
||||||
return new ByteArrayInputStream(thumbnailBytes.toByteArray());
|
return new ByteArrayInputStream(thumbnailBytes.toByteArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user