Ask questionsSudden Crash on iOS when manipulating images from the camera. [Refer Issue #2285].
I need to take continuous capture in my application. I am using Capture API. My App need to catch Atleast 200 photos per session. But I am not able to do.
Answer questions jsfan3
@mailsenthil77 What exactly do you do when manipulating images? For example, do you use
Image.scaled(...)? I solved iOS crashes when manipulating images simply stopping to use these two APIs. Instead of
Image.createImage(...) I use
EncodedImage.create(...) and instead of
Image.scaled(...) I use
ImageIO.save(...) to scale the images. In this way there is an huge difference on RAM: for example, to load 20 photos at 12MP,
Image.createImage(...) requires about 1GB of RAM (minimum), while
EncodedImage.create(...) requires a lot less (see the Javadoc). Moreover,
ImageIO.save(...) has no impact on RAM in compare to