mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
improve group image quality
This commit is contained in:
parent
e55249182a
commit
168d2ae16c
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
# Delta Chat Android Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
* improve image quality when setting group avatars
|
||||
|
||||
## v2.10.0
|
||||
2025-08
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue