Bug 158292 - Header background (area) image in ODT not saved into DOCX
Summary: Header background (area) image in ODT not saved into DOCX
Status: RESOLVED DUPLICATE of bug 100503
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2023-11-21 02:51 UTC by Aron Budea
Modified: 2023-11-22 16:18 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODT (83.89 KB, application/vnd.oasis.opendocument.text)
2023-11-21 02:51 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2023-11-21 02:51:56 UTC
Created attachment 190926 [details]
Sample ODT

Open the attached ODT, save it as DOCX and reload.

=> Note how the header background is gone.

I wonder if this is related to bug 126533.

Observed in LO 24.2.0.0.alpha0+ (41d9584179ef7b4e18eda47c2c0a955df8c087a5), 4.1 / Linux.
Comment 1 Aron Budea 2023-11-21 02:53:32 UTC
The image in header is defined via Format -> Page Style; Header tab (Header on) -> More...; Area tab -> Image.
Comment 2 Justin L 2023-11-21 12:16:41 UTC
Can you put an image into a DOCX header with Word? I can't. I can only do "Borders and shading" colours and hatching. No gradients, no images.

I think we need a DOCX example from Word and see if we can round-trip it. If that is possible, then we can look at mapping ODT to DOCX.
Comment 3 Justin L 2023-11-21 12:24:46 UTC

*** This bug has been marked as a duplicate of bug 100503 ***
Comment 4 Michael Meeks 2023-11-22 15:55:24 UTC
I'm surprised by this; clearly images can go in headers:

https://support.microsoft.com/en-us/office/add-images-to-a-header-or-footer-6116c691-9d34-4535-b4c4-1d20784e7e1d

Detail of background-image-ness are interesting but ... ? are we really happy dropping the image and giving such a very different visual result?
Comment 5 Justin L 2023-11-22 16:09:13 UTC
(In reply to Michael Meeks from comment #4)
> I'm surprised by this; clearly images can go in headers:
Sure. But this isn't "insert an image in the header", it is "set image as background fill".
Comment 6 Justin L 2023-11-22 16:18:56 UTC
I'm sure it will not be easy to translate "image as background" into "properly sized/tiled anchor-image" during export.