-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve sharing large images (#2020)
* log errors as such * skip unneeded nil assignment * prescale images to fit into extension restrictions extensions must not use more than 120mb of memory, this is easily exhausted by core scaling down images. using iOS function for scaling use less memory (or the memory is not counted) and avoids this error. although we accept various formats of images, in practise i've seen them passing to the extension only as URL, if we see that for other formats as well, we can optimize the other branches, currently, that seems not to be needed.
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters