Bug 137833 - Image appears rotated when loaded in latest LO
Summary: Image appears rotated when loaded in latest LO
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: low minor
Assignee: Andras Timar
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Images
  Show dependency treegraph
 
Reported: 2020-10-28 18:14 UTC by Rhys Young
Modified: 2025-12-02 18:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Image appearing rotated (2.34 MB, image/jpeg)
2020-10-28 18:15 UTC, Rhys Young
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rhys Young 2020-10-28 18:14:48 UTC
Description:
Image appears rotated when loaded in latest LO. It appears rotated by 90 degrees instead of being upright

Steps to Reproduce:
1. Download attached image
2. Open file in latest libre office
3. View rotated images

Actual Results:
Should have image appear upright.

Expected Results:
Image appears rotated to the left.


Reproducible: Always


User Profile Reset: No



Additional Info:
N/A
Comment 1 Rhys Young 2020-10-28 18:15:54 UTC
Created attachment 166816 [details]
Image appearing rotated
Comment 2 Timur 2020-10-29 07:53:57 UTC
File-open in LO opens it in Draw without dialog, it looks rotated. 
File-open in Draw gives a dialog: This image is rotated. Would you like to rotate it into standard orientation?
No opens it rotated, similar to Paint.
Yes opens it upright.
I'd say NotABug.
Comment 3 Timur 2020-10-29 08:00:18 UTC
This is Exif Orientation tag, looks like LO supports it.
Comment 4 Telesto 2020-10-29 09:07:23 UTC
Not sure if LibreOffice doing the right thing.. Except after they dialog

Chrome/Corel PaintShop/ DXO do open they file properly. So I think there is something off
Comment 5 Telesto 2020-10-29 09:09:22 UTC
@Quikee
Some DEV insights would be nice. This is about EXIF rotation tags (most applications do rotate), LibreOffice doesn't by default. 
Insert -> Image -> Shows a dialog for rotation
Comment 6 Tomaz Vajngerl 2020-10-29 09:28:10 UTC
We removed the dialog in Writer, but it looks like it is still present in Draw.
Comment 7 Timur 2020-10-29 09:59:20 UTC
What's the bug and Expected here exactly? 
Apart that all modules should behave the same.
Comment 8 Simo He 2022-06-14 13:17:10 UTC
This might be resolved since bug 146019 is solved
Comment 9 Timur 2022-06-14 15:01:11 UTC
Insert is OK but Open in LO/Draw is not.
Comment 10 QA Administrators 2024-06-14 03:17:57 UTC Comment hidden (noise, obsolete)
Comment 11 Andras Timar 2025-09-10 07:36:30 UTC
Attempted fix: https://gerrit.libreoffice.org/c/core/+/190733
Comment 12 Commit Notification 2025-09-10 08:24:44 UTC
Andras Timar committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/0200a718af66ec1e8d2e41e937aaebcd337a147e

tdf#137833 Always respect EXIF Orientation tag when importing a JPEG

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Timur 2025-09-10 11:19:48 UTC
Seems good to me, thanks.
Comment 14 Aron Budea 2025-11-11 02:04:32 UTC
*** Bug 169376 has been marked as a duplicate of this bug. ***
Comment 15 Gerald Pfeifer 2025-11-16 21:41:01 UTC
Indeed this appears fixed in the latest daily build (which is from
Thursday) when simply invoking LibreOffice from the command line with
the name of the attached image as parameter:

  Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
  Build ID: d2def868cb3ac5a7e538a911e83d7d907a2ec794
  CPU threads: 12; OS: Linux 6.17; UI render: default; VCL: gtk3
  Locale: en-US (en_US.UTF-8); UI: en-US

(And confirmed as broken in 25.8.2.2.)

Thank you, Andras!


However, it does appear bug #169376 is not actually a duplicate: It
looks one way in LibreOffice 25.8 (and earlier) and Word, and since
then, so in current 26.2 snapshots.