diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-01-09 16:16:18 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-01-09 16:16:18 +0100 |
commit | 708d7c5b98e71c5b5b02a2d4c721b70cea0db906 (patch) | |
tree | 6076c23d5e22ae619780c03af1f4936d0e08a289 /src/main/java/eu/siacs/conversations/Config.java | |
parent | 6acb80a83ad6561dea5e14de6d2c514748be303f (diff) |
automatically adjust image compression to keep files under 512MiB
Diffstat (limited to 'src/main/java/eu/siacs/conversations/Config.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/Config.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/Config.java b/src/main/java/eu/siacs/conversations/Config.java index 55928d18..aff27504 100644 --- a/src/main/java/eu/siacs/conversations/Config.java +++ b/src/main/java/eu/siacs/conversations/Config.java @@ -36,6 +36,7 @@ public final class Config { public static final int IMAGE_SIZE = 1920; public static final Bitmap.CompressFormat IMAGE_FORMAT = Bitmap.CompressFormat.JPEG; public static final int IMAGE_QUALITY = 75; + public static final int IMAGE_MAX_SIZE = 524288; //512KiB public static final int MESSAGE_MERGE_WINDOW = 20; |