Bug 124615 - FILESAVE AND FILEOPEN: rotated images not rotated on import or export
Summary: FILESAVE AND FILEOPEN: rotated images not rotated on import or export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
: 112595 (view as bug list)
Depends on:
Blocks: DOC-Images
  Show dependency treegraph
 
Reported: 2019-04-08 16:19 UTC by Luke
Modified: 2023-06-01 01:03 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Native Word .doc with image rotated 75 degrees clockwise (31.00 KB, application/msword)
2019-04-08 16:19 UTC, Luke
Details
.doc compared MSO LO (343.89 KB, image/png)
2020-09-17 13:02 UTC, Timur
Details
124615_dump.doc: doc_dump of RotatedPenguin.doc (451.50 KB, application/msword)
2023-05-29 21:01 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2019-04-08 16:19:08 UTC
Created attachment 150615 [details]
Native Word .doc with image rotated 75 degrees clockwise

With Bug 70838 fixed, we now correctly export image rotation values. However, the importer does not read these values. 

Steps to Reproduce:
1. Open attachment 88076 [details]
2. Save as .doc
3. Close and Open .doc

Expected:
1. Image and Size -> Rotation
2. Rotation Angle = 44.99 / 45

Image rotated 
1. Rotation Angle = 0

Note: If opened in Word, the image is correctly rotated.
Comment 1 raal 2019-04-08 17:12:32 UTC
confirm with Version: 6.3.0.0.alpha0+
Build ID: 31ac398cfa30694b18240d31df17a58d699b5bf6
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: cs-CZ (cs_CZ.UTF-8); UI-Language: en-US

*** This bug has been marked as a duplicate of bug 116371 ***
Comment 2 Timur 2020-09-17 12:57:56 UTC Comment hidden (obsolete)
Comment 3 Timur 2020-09-17 13:02:43 UTC
Created attachment 165626 [details]
.doc compared MSO LO

Repro issue in 7.1+, saved DOC opens wrong in LO and correct in MSO.
Comment 4 Timur 2020-09-17 13:04:57 UTC
Different issue with FILESAVE of ODT attachment 140588 [details] to DOC, it's both wrong in LO and MSO, as seen in attachment 165623 [details]. Let's keep all here to see what happens.
Comment 5 Telesto 2020-12-20 19:17:00 UTC
See DOCX solution: bug 116371
Comment 6 Justin L 2023-05-26 19:51:36 UTC
repro 7.6+
Wow, hard to believe we don't support this. Perhaps image rotation is relatively new to LO? Oh yeah, new with 6.3 commit cb628728a33a3c6092ab929def747252ecec428c
Author: Armin Le Grand on Wed Jan 3 17:50:24 2018 +0100
    RotateFlyFrameFix: im/export rotation in deg
Comment 7 Justin L 2023-05-29 21:01:00 UTC
Created attachment 187595 [details]
124615_dump.doc: doc_dump of RotatedPenguin.doc

A brief search in the documentation and the doc dump didn't indicate what the sprm name that specifies the rotation.
Comment 8 Luke 2023-05-31 01:09:44 UTC
(In reply to Justin L from comment #7)
> A brief search in the documentation and the doc dump didn't indicate what
> the sprm name that specifies the rotation.

Did you try creating 2 documents with only the rotation angle changed? Then diff the doc_dump?
Comment 9 Justin L 2023-05-31 23:42:04 UTC
*** Bug 112595 has been marked as a duplicate of this bug. ***
Comment 10 Justin L 2023-06-01 01:03:16 UTC
(In reply to Luke from comment #8)
> Did you try creating 2 documents with only the rotation angle changed?
Good idea. Unfortunately, using Word 2010 I get a very clear <op name="rotation"> entry. But "RotatedPenguin.doc" doesn't have this...