You could try my extension for that:
One word of warning. with nb188 release, camera images are given the extension .png, when they are actually .jpg files. Try with the above first (convert png to jpg), then try a resize. If it doesn't work, you will need to rename the image file from png to jpg. Hopefully this will be fixed in the next release.
For resizing, you may need to do some testing to get the correct size and quality you want (if creating jpg or webp)
Note: you only need READ permission. WRITE permission is deprecated in later Android versions.