Why does a photo appear sideways?
Smartphones and cameras record the orientation of the shot as separate information inside the file. Programs that read it show the photo upright, but some programs and websites ignore it, so the photo appears sideways.
When that happens, rotating the photo yourself and saving it makes it look the same way wherever it is opened.
How to rotate
Choose a photo and press Rotate left 90° or Rotate right 90°. You can press as many times as you need, check the direction in the preview and then download. For a 180° turn, press the same button twice.
Flip horizontal and flip vertical
Depending on the app settings, a selfie can come out mirrored, with text or signs reversed. Flip horizontal puts it back the right way round.
Flip vertical is for fixing photos or scans that are upside down.
A note on the saved format
The result is saved as a JPG file, and images with a transparent background get a white background. If you need to keep transparency, use a separate PNG editor.