Straightening a beach photo, and what the corners cost
Say you took a 4000 by 3000 photo of the sea, and the horizon slopes down to the right. Laid against a ruler, it drops about 70 pixels across the 4000 pixel width. That is a slope of about 1 degree. To level it, the picture has to turn 1 degree to the left, which is -1 in the angle box. Turn the phone in your hand and you can see the problem straight away: the picture is now tilted inside the frame, and each corner of the frame has a thin empty triangle.
There are two honest ways to deal with those triangles. "Keep the whole picture" grows the canvas to fit the turned photo. At -1 degree, the 4000 by 3000 photo needs a canvas of 4052 by 3070, and the four triangles are left transparent or white. Nothing is lost, but the edges show. "Crop to fill" goes the other way. It keeps the largest rectangle of the same 4:3 shape that fits wholly inside the turned photo, which at -1 degree is 3909 by 2932. You lose a strip of 34 to 46 pixels around the edge, and the result looks like a level photo that was always level.
The cost grows quickly with the angle. At 5 degrees the same photo cropped to fill is 3595 by 2696, and at 45 degrees a square keeps only about 71% of its width. That is why the result line states the exact size before you press the button: a big turn with "Crop to fill" can surprise you. A quarter turn has none of this. Turning 4000 by 3000 to the right gives exactly 3000 by 4000, with no blending and no blank corners, so the fit choice is not even shown.
Sideways photos are a different problem with the same fix. Many phone cameras save the pixels the way the sensor sits and add an orientation tag, a note that says "turn this before you show it". Your phone reads the tag. Some web forms, older programs and print shops do not, and the photo appears on its side. When you choose such a photo, the page says that it carries the tag. Pick "Keep as shown", press the button, and the download has the turn written into the pixels, with no tag left to misread.
There are limits worth knowing. Each picture can be up to 8000 pixels on a side, and up to 50 can be turned in one go; past that, a phone browser can run out of memory. The new files do not keep camera details or location, because the browser writes only the pixels. A JPEG is saved again, which changes its pixels very slightly, and a turn by an angle that is not a quarter turn softens fine detail a little. HEIC photos come back as JPEG, because browsers cannot write HEIC.