Increase reduced image size

pull/155/head 1.429
M66B 6 years ago
parent 8517f498a1
commit bccbb51b90

@ -1116,7 +1116,7 @@ If your provider requires an unsupported authentication method, you'll likely ge
Large inline or attached [PNG](https://en.wikipedia.org/wiki/Portable_Network_Graphics) and [JPEG](https://en.wikipedia.org/wiki/JPEG) images
will automatically be resized for displaying on screens.
This is because email messages are limited in size, depending on the provider mostly between 10 and 50 MB.
Image will be resized to a maximum width and height of about 1280 pixels and saved with a compression ratio of 90 out of 100.
Image will be resized to a maximum width and height of about 1440 pixels and saved with a compression ratio of 90 %.
Images are scaled down using whole number factors to reduce memory usage and to retain image quality.
There is an advanced option to disable automatically resizing of image attachments. Inline (embedded) images will always be resized.

@ -182,8 +182,8 @@ public class FragmentCompose extends FragmentBase {
private boolean encrypt = false;
private OpenPgpServiceConnection pgpService;
private static final int REDUCED_IMAGE_SIZE = 1280;
private static final int REDUCED_IMAGE_QUALITY = 90;
private static final int REDUCED_IMAGE_SIZE = 1440; // pixels
private static final int REDUCED_IMAGE_QUALITY = 90; // percent
@Override
public void onCreate(Bundle savedInstanceState) {

Loading…
Cancel
Save