Small improvement

This commit is contained in:
M66B
2025-01-06 18:28:51 +01:00
parent 5b93854656
commit 6f828dc8af
6 changed files with 8 additions and 8 deletions

View File

@@ -121,7 +121,7 @@ public class FragmentDialogEditImage extends FragmentDialogBase {
File file = attachment.getFile(context);
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file))) {
bm.compress(Bitmap.CompressFormat.PNG, 90, os);
bm.compress(Bitmap.CompressFormat.PNG, ImageHelper.DEFAULT_PNG_COMPRESSION, os);
}
db.attachment().setName(id, attachment.name, "image/png", file.length());