For the typical smartphone use case, people would prefer only having the final JPG and not raw files.
I suggest to make an option in the settings, whether the raw file should be kept or not (default: throw it away), and pass that as env var to the post-processing script.
Issue now tracked here: https://gitlab.com/postmarketOS/megapixels/-/issues/10