Legacy Knowledge Base
Published Jun. 30, 2025

User profile picture appears rotated after upload

Written By

Adam Kollar

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When uploading a profile picture, the image appears rotated in Liferay despite displaying correctly on a local machine.

Environment

  • DXP 7.0+

Resolution

  • Certain image files carry an EXIF orientation tag written by cameras and phones. While local image viewers apply this tag, Liferay processes profile pictures by their stored orientation. Because the profile picture dialog can crop an image but cannot rotate it, you must rotate the image before uploading it. Choose one of the following methods:
  • Option 1: Rotating Outside Liferay
    1. Open the image in a local photo editor (e.g., Photoshop or Paint).
    2. Rotate the image to the correct orientation and save the file.
    3. Upload the updated image as your profile picture in Liferay.
  • Option 2: Rotating Inside Liferay
    1. Upload the image to Documents and Media.
    2. Click Actions for the image and select Edit Image.
      • On Liferay 7.3 and earlier, select Edit With Image Editor and click Transform > Rotate.
    3. Click Rotate until the image displays correctly.
    4. Click Save.
    5. Download the rotated image from Documents and Media and upload it as your profile picture.

Additional Information

 
Did this article resolve your issue ?

Legacy Knowledge Base