Sorry, not sure what you mean when you indicate that you have to edit the photos to make them portrait. There is no edit that can do that since Portrait Mode has to do with depth of field, which is not something that you can create after the photo has been taken: Use Portrait mode on your iPhone - Apple Support
What is it that you are trying to do, exactly?
Cheers,
GB