mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
improve group image quality
This commit is contained in:
@@ -30,7 +30,7 @@ public class AvatarHelper {
|
||||
try {
|
||||
File avatar = File.createTempFile("groupavatar", ".jpg", context.getCacheDir());
|
||||
FileOutputStream out = new FileOutputStream(avatar);
|
||||
bitmap.compress(Bitmap.CompressFormat.JPEG, 85, out);
|
||||
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
|
||||
out.close();
|
||||
dcContext.setChatProfileImage(chatId, avatar.getPath()); // The avatar is copied to the blobs directory here...
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
|
||||
Reference in New Issue
Block a user