Images taken from iphone in particular and mobile devices in general when put into the computer will display the wrong dimension
Cause: On mobile devices, in order to display the correct image when the user holds the phone vertically or horizontally to take a photo, the device has changed the orientation attribute (a number) of the image.
|3||Rotate 180 degrees|
|6||Turn 90 degrees clockwise|
|8||Rotate counterclockwise 90 degrees|
|NULL||No value exists|
How to fix: have to write a function that uses the orientation parameter to rotate the image correctly