Load image with resampling to prevent OOM

Authored by eduisters on Nov 7 2018, 4:40 PM.

Description

Load image with resampling to prevent OOM

Summary:
When loading large images you can run into an OOM situation crashing
the app and leaving the progress notification displayed indefinitely

BUG: 397507

Test Plan:
Before applying the patch find a phone where the app crashes when you send a very large
image to it (my 6.0.1 phone did not even crash when i send it a 85MB image but my 4.0.4 phone
already crashes on a 7MB image)

Apply patch install and send image again

Reviewers: KDE Connect, albertvaka

Reviewed By: KDE Connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: KDE Connect

Differential Revision: https://phabricator.kde.org/D16712

Details

Committed
albertvakaNov 7 2018, 4:53 PM
Reviewer
KDE Connect
Differential Revision
D16712: Load image with resampling to prevent OOM
Parents
R225:9e1e4796504c: Disable bad cipher suites now that we dropped support for API<14
Branches
Unknown
Tags
Unknown