Bug 150554 - Specific image anchoring properties (alignment & keep text) change when saving file to .docx
Summary: Specific image anchoring properties (alignment & keep text) change when savin...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2022-08-22 23:44 UTC by Dave Seitman
Modified: 2023-03-15 14:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File with "correct" image placement properties (211.68 KB, application/vnd.oasis.opendocument.text)
2022-08-22 23:46 UTC, Dave Seitman
Details
File with properties altered after conversion from .odt to .docx (57.21 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-08-22 23:47 UTC, Dave Seitman
Details
File I was working with - properties changed when previously saved (57.19 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-08-22 23:48 UTC, Dave Seitman
Details
screenshot to show correct placement of images (77.37 KB, image/png)
2022-08-22 23:50 UTC, Dave Seitman
Details
screenshot of document page showing image locations changed (93.65 KB, image/png)
2022-08-22 23:55 UTC, Dave Seitman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Seitman 2022-08-22 23:44:08 UTC
Description:
When using FILESAVE to save a .docx file to .docx, various image properties change and this affects document layout when re-opening document. Specifically, images anchored "to paragraph" become anchored "to character".  Images anchored "to paragraph" with vertical alignment to "paragraph text area" become vertically aligned to "character". Images anchored "to character" with vertical alignment to "character" become vertically aligned to "line of text".  Images lose "keep inside text boundaries" if previously checked. Images with horizontal alignment "center" to "paragraph area" are inconsistently changed to "from left" alignment of "paragraph area". These issues do not appear to occur if the file format is changed to an .odt document.

Steps to Reproduce:
1.Open sample file "Formula placement bug 1.odt" to confirm properties of the formulae as they were originally entered.
2.Open sample file "Formula placement but 1 from odt.docx" to confirm the property errors after the .odt file was saved to .docx format
3.

Actual Results:
See "Formula placement but 1.docx" .  The properties of all the equations were originally as described in red type and as shown in the .odt file.  Now they have been changed.

Expected Results:
None of the properties of the images (formulae) should have been changed during the save and open process


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Currently using: Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 8; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

The bug also existed in OL ver 7.2.7 and ver. 6.4.2

See screenshots to see how one page of my document was altered after saving.
Comment 1 Dave Seitman 2022-08-22 23:46:24 UTC
Created attachment 181961 [details]
File with "correct" image placement properties
Comment 2 Dave Seitman 2022-08-22 23:47:25 UTC
Created attachment 181962 [details]
File with properties altered after conversion from .odt to .docx
Comment 3 Dave Seitman 2022-08-22 23:48:34 UTC
Created attachment 181963 [details]
File I was working with - properties changed when previously saved
Comment 4 Dave Seitman 2022-08-22 23:50:50 UTC
Created attachment 181964 [details]
screenshot to show correct placement of images
Comment 5 Dave Seitman 2022-08-22 23:55:49 UTC
Created attachment 181965 [details]
screenshot of document page showing image locations changed
Comment 6 Dieter 2022-09-19 14:42:00 UTC
I confirm it with

Version: 7.4.1.2 (x64) / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps to reproduce
1. Open attachment 181961 [details]
2. Save as docx
3. Reload

Actual results:
See description in comment 0

Sincde there are a lot of different issues, I'm not sure, if would be better to open a separate report for each issue.
Comment 7 Justin L 2023-03-15 14:28:50 UTC
(In reply to Dave Seitman from comment #0)
> When using FILESAVE to save a .docx file to .docx,
I assume this was a mistake, and you meant "save an odt file to .docx".

> change and this affects document layout when re-opening document.
> Specifically, images anchored "to paragraph" become anchored "to character".
DOCX doesn't have "to paragraph" or "to page" as options, only "as character" or "to character". [Frames on the other hand are a different story.]

> Images anchored "to character" with ...
I don't know about these, but likely the same kind of thing is true. MS formats do not necessarily have corresponding options to all of LO's settings (and vice versa).

I'm tempted to mark this as INVALID, since the report is so open ended and unattainable. There are tons of bug reports out there about layout anchoring, and this bug report doesn't add any specific value.

See bug 112313 for the report about DOCX files importing with a different wrap result.
See bug 124059 for another INVALID ODT->DOCX wrapping complaint.

There is one possible salvageable piece here - a centre alignment should remain centre alignment I would think. And it does in 5.1 and 7.6+ (although as soon as you move it, then it changes).

OK - I'm marking as INVALID.