
Best way to get pics to come out vertically is to take the pic with your phone sideways.
If the pic is taken with your phone straight up and down you can edit it by (on an iPhone ) clicking EDIT button then the CROP button and there should be a flip it square in the top left corner of the screen while in crop mode.
.
You meet some of the best folks behind bars.