Processing IR RAW files
This whole idea about processing photos on the phone began when I came across this description of an android based RAW photo processing pipeline. You will probably recognise some fragments of the scripts that will come later have their origins in this article. I've added a bit to the concepts, but the original genius move comes from here.
To start with, install the F-Droid app & use that to install Termux, Termux:API, Termux:Widget & if you have Tasker & want to do more complex automated things then install Termux:Tasker (I'm not going to cover that here though).
Open Termux & enter each of these lines, & press the enter key after each one.
Make sure that things are up to date. I think that I ended up needing the extra packages in the tur-repo for the photo processing, but I'm not totally surepkg install tur-repo
apt update && apt upgrade
Install dcraw & imagemagick (needed to process the RAW files) There was a problem for me with the libexpat library, so the code to reinstall it is here too.apt install dcraw imagemagick
pkg rei libexpat
Enable access to the file storage on your phone for termux to be able to read/write files (agree to the request that the access permission is granted!)termux-setup-storage
Add the termux api & core-utilspkg install termux-api
pkg install core-utils
We'll also need exiftool in order to be able to copy the shooting data from the RAW file to the processed onepkg install exiftool
Lastly, we'll want a directory for the scripts to be run from the Termux widgetmkdir -p $HOME/.shortcuts
chmod 700 -R /data/data/com.termux/files/home/.shortcuts
We now have termux installed, with access to the the photos on your phone & with dcraw to convert the photo to something that imagemagick can process (after changing the white balance for us, if needed).
The next section is about how to set up the options & which ones do what