mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 17:59:39 +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
|
# Delta Chat Android Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
* improve image quality when setting group avatars
|
||||||
|
|
||||||
## v2.10.0
|
## v2.10.0
|
||||||
2025-08
|
2025-08
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue