SAP Knowledge Base Article - Public

3722934 - Photo rotation issue after uploading photos on ios devices

Symptom

  • Photos uploaded from iOS devices automatically rotate 90 degrees after saving.
  • Photos uploaded directly from the photo album do not experience this issue.

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Access the employee profile update section via the web interface on an iOS device.
  2. Select the option to upload a photo.
  3. Capture a photo using the device's camera and save it.
  4. Observe that the saved photo rotates 90 degrees automatically.
  5. Alternatively, upload a photo directly from the photo album and save it.
  6. Observe that the photo retains its original orientation without any rotation issues.

Cause

  • When photos are captured using mobile devices, they are saved in their raw, default orientation (commonly landscape) with an embedded EXIF metadata tag specifying the correct orientation.
  • Most applications and browsers automatically read and apply the EXIF metadata to display the image correctly.
  • The system uses Java's standard image processing library (javax.imageio.ImageIO) for handling photo uploads. This library does not automatically read or apply EXIF metadata, resulting in the photo being displayed in its raw, unrotated state.

Resolution

  1. Manually rotate and save the photo using the device's built-in photo editor (e.g., iOS Photos or Android Gallery) before uploading. This ensures the pixel data is updated to reflect the correct orientation.
  2. Utilize third-party applications such as Google Photos or Snapseed to automatically adjust the photo orientation based on EXIF metadata before saving.
  3. Ensure the photo contains the correct EXIF direction tag by testing with photos that have accurate orientation metadata.
  4. Use the latest version of the employee profile system, as testing has shown that the latest version does not exhibit similar issues.

Keywords

image rotation, ios photo upload, photo orientation, EXIF metadata, javax.imageio.ImageIO, photo management, mobile device photo issue, photo rotation problem, image upload issue, employee profile photo, photo editor, Google Photos, Snapseed, iOS Photos, Android Gallery, system behavior, photo display issue , KBA , LOD-SF-EP-PHO , Photo Management , How To

Product

SAP SuccessFactors Employee Central all versions