Description
Using the current iOS app 1.22.1 with core 1.60.0 an image of 9.5 mb sent by deltachat consumes more than 250 MB RAM.
This leads to crashes of the share extension app as described here deltachat/deltachat-ios#1330.
I wonder if the image processing can be memory optimized.
Moreover it would help if there was an API to define a fixed memory limit an image processing task can allocate and if it exceeds to raise an error, the UI can catch. This way we could avoid the situation that iOS throws an EXC_RESOURCE RESOURCE_TYPE_MEMORY
exception, which can't be handled by try/catch.