able to read exif data and orient the direction to repair of the uploaded image(fixed #3562)
Merge remote-tracking branch 'origin/pr/112' into stable-3.6.x (fixes #3562, BP from #3560)