I'm developing a simple image processing app and I've encountered an issue on my test unit (iPhone 3G) that generally any image over 1024x1024 pixels will cause the app to crash when saving.
The process my app follows:
User selects an image via UIImagePicker
A working copy of the selected image is created and resized to the view bounds (e.g. 320x480) for performance.
User does their image manipulations on the working copy and presses save
The same manipulations are done on the original full-res image, then saved to the photo album.
If the image is is the region of 1024x1024 all is fine, if too large the app crashes without any memory warning.
After searching through stackoverflow it seems that there this a recommendation from Apple to not exceed 1024x1024, however I've found that the PhotoShop Express app on the same iPhone 3G is able to save images at their original high resolution (e.g. 1534x2034).
Could someone give me some ideas as to how to save high-res images to the photo album like PhotoShop Express is able to?
Thanks.