gekitz / GKImagePicker

Enables a custom crop rect for UIImagePickerController
MIT License
592 stars 176 forks source link

High Memory usage when cropping Panorama [IOS 7.1.1 multiple devices] #46

Open ataranlen opened 10 years ago

ataranlen commented 10 years ago

I'm just running the example application included in the project. When selecting a panorama in the Apple's Default Cropper, Memory usage is 15.5 MB. When using the Custom Cropper, it jumps to 88.6. This is using a 7.4 MB JPG, 8208 x 2332 image. I've done a lot of testing with other panoramas as well, it gets worse the larger the image is.

Within the context of another app, this is causing memory warnings, and in some cases, crashing the app.

Baseline: screenshot 2014-08-15 16 42 44 Default: screenshot 2014-08-15 16 42 55 Custom Crop: screenshot 2014-08-15 16 43 10

VM Allocations is pointing to ImageIO as the culprit, but I haven't found a potential solution.

s commented 9 years ago

Hey did you find any solution?

ataranlen commented 9 years ago

No, I still do not have a solution for this problem.