mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
fix jpeg compression max limit issues
1) Increase max image size when sending via push 2) Decrease max image dimen when sending via MMS Fixes #3070 Closes #3287 // FREEBIE
This commit is contained in:
parent
bb6b86ad59
commit
3a07809545
@ -1,7 +1,7 @@
|
|||||||
package org.thoughtcrime.securesms.mms;
|
package org.thoughtcrime.securesms.mms;
|
||||||
|
|
||||||
public class MmsMediaConstraints extends MediaConstraints {
|
public class MmsMediaConstraints extends MediaConstraints {
|
||||||
private static final int MAX_IMAGE_DIMEN = 1280;
|
private static final int MAX_IMAGE_DIMEN = 1024;
|
||||||
public static final int MAX_MESSAGE_SIZE = 280 * 1024;
|
public static final int MAX_MESSAGE_SIZE = 280 * 1024;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -17,7 +17,7 @@ public class PushMediaConstraints extends MediaConstraints {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getImageMaxSize() {
|
public int getImageMaxSize() {
|
||||||
return 300 * KB;
|
return 420 * KB;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user