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
- Open the image in a local photo editor (e.g., Photoshop or Paint).
- Rotate the image to the correct orientation and save the file.
- Upload the updated image as your profile picture in Liferay.
- Option 2: Rotating Inside Liferay
- Upload the image to Documents and Media.
- Click Actions for the image and select Edit Image.
- On Liferay 7.3 and earlier, select Edit With Image Editor and click Transform > Rotate.
- Click Rotate until the image displays correctly.
- Click Save.
- Download the rotated image from Documents and Media and upload it as your profile picture.
Additional Information
- For details on the image editor, see Editing Images.