Posts

Post not yet marked as solved
1 Replies
1.3k Views
Hi,Let's say - i have quite big image in Photo Library on my iPad (21600x21600 pixels, jpeg) and i'm trying to retrieve it with PHImageManager.requestImage(). If i'm passing targetSize with some smaller value (for example 1000x1000) - image retrieved properly. Othervise i'm getting following error (on iOS 9, on iOS 11 app crashes due to memory):CGBitmapContextInfoCreate: unable to allocate 1866240000 bytes for bitmap dataMy use case is to retrieve image from Photos, change it's size and jpeg quality as defined by user in settings and send it to server. Is there any way to make this work for really big images?
Posted
by JL3.
Last updated
.