Anybody got an idea for how to auto-rotate uploaded images taken in a portrait (vertical) mode on smartphone? I realize image orientation recognition may not be straight-forward ... e.g. if I simply transfer images from my phone to my PC or Mac, it'll display sideways ... but if I upload it from the phone to e.g. Picasa or Facebook, it'll be displayed correctly. So this tells me there must be a way to tell how an image should be oriented. Could this somehow be added to the upload script or something?
Picasa or Facebook use exif metadata to recognize correct image orientation, unfortunately basic php functions used in upload script are not so advanced, so you will need to rotate your iamges before upload.