Skip to content

fix(odf): preserve image title and description when saving to ODT - #542

Open
isboston wants to merge 1 commit into
Euro-Office:mainfrom
isboston:fix/516-image-alt
Open

isboston wants to merge 1 commit into
Euro-Office:mainfrom
isboston:fix/516-image-alt

Conversation

@isboston

@isboston isboston commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Closes #516.

Copy the Word drawing's title and description to the ODF frame and write each non-empty value as its SVG element.

Reproduced with the issue attachment using the Windows x2t artifact from main (de4abb7). The intermediate DOCX retained both values on wp:docPr. The resulting ODT lost both from draw:frame.

The regression test converts a one-pixel image with a title containing an ampersand and a separate description, and checks both elements inside its frame.

Signed-off-by: isboston <72318280+isboston@users.noreply.github.com>
@isboston
isboston requested a review from a team as a code owner December 4, 2026 06:39
@isboston
isboston requested review from Aiiaiiio and DmySyz and removed request for a team December 4, 2026 06:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ODT save drops image title and description

1 participant