Portrait pictures, taken from some mobile devices, uploaded via an HTML form gets the wrong orientation while embedded in a web page.
This is due to the EXIF orientation metadata, which could for instance have the value 6 = Rotate 90 CW
telling the image to be displayed with a specific orientation. However, the image itself - without metadata - is stored sideways as a horizontal image. Depending on the image renderer, you will either see the image correctly (as the left thumbnail below) or without the rotation metadata applied (as the right thumbnail). For images embedded in websites, it is the latter.
Is there any way to rotate the uploaded picture manually using either Javascript or Node.js, in a Parse Cloud Code hosted web app? (Parse Cloud Code only supports a few dependencies - but you could still upload small scripts yourself).