I have (at long last) changed the photo upload software so that it no longer increases the size of images that are shorter than 1000 pixels on the longest side. Images larger than 1000 pixels are reduced to 1000 pixels as before.
Now I need to figure out a way to rotate uploaded images.