My test device is a Motorola Moto G84 5G with 12GB RAM and a 50MP rear camera.
A single photo at full resolution is approximately 8000x6000 pixels, which means ~192MB RAM just to decode the raw bitmap. That explains the OOM errors.
Regarding your questions:
KIO4.CopyToASD does copy the file to ASD successfully, but the GotFile event never fires, so I lose the path. My workaround would be to use a hardcoded filename like “temp.jpg” and build the ASD path manually.
Can ImageConvertor accept a content:// URI directly from ImagePicker, or does it need a real file path?
Most importantly: does ImageConvertor use BitmapFactory.Options with inSampleSize to subsample the image BEFORE fully decoding it into RAM? That’s the only way to handle 50MP photos without OOM. If it decodes the full 192MB first and resizes after, it will still crash on my device.
Thanks for your patience and help!
For detailed questions about the extension ask its author @TimAi2
In case he does not answer here, ask in the App Inventor Extension thread
Taifun