improve group image quality

This commit is contained in:
adbenitez 2025-08-07 23:59:05 +02:00
parent e55249182a
commit 168d2ae16c
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
# Delta Chat Android Changelog # Delta Chat Android Changelog
## Unreleased
* improve image quality when setting group avatars
## v2.10.0 ## v2.10.0
2025-08 2025-08

View file

@ -30,7 +30,7 @@ public class AvatarHelper {
try { try {
File avatar = File.createTempFile("groupavatar", ".jpg", context.getCacheDir()); File avatar = File.createTempFile("groupavatar", ".jpg", context.getCacheDir());
FileOutputStream out = new FileOutputStream(avatar); FileOutputStream out = new FileOutputStream(avatar);
bitmap.compress(Bitmap.CompressFormat.JPEG, 85, out); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
out.close(); out.close();
dcContext.setChatProfileImage(chatId, avatar.getPath()); // The avatar is copied to the blobs directory here... dcContext.setChatProfileImage(chatId, avatar.getPath()); // The avatar is copied to the blobs directory here...
//noinspection ResultOfMethodCallIgnored //noinspection ResultOfMethodCallIgnored