Bug Hunting Session
Bug 123024 - image inside custom shape is not supported
Summary: image inside custom shape is not supported
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes-Custom
  Show dependency treegraph
 
Reported: 2019-01-28 19:34 UTC by Regina Henschel
Modified: 2019-03-25 17:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
image in custom shape, produced by Word 365 (207.60 KB, application/vnd.oasis.opendocument.text)
2019-01-28 19:34 UTC, Regina Henschel
Details
comparison LibreOffice 6.3 Master and MSO 2010 (305.32 KB, image/png)
2019-03-25 17:10 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2019-01-28 19:34:18 UTC
Created attachment 148717 [details]
image in custom shape, produced by Word 365

Open attached document. The file was produced as export in Wort 365 from the attachment "doc" https://bugs.documentfoundation.org/attachment.cgi?id=148697 from bug 123006. It shows the rectangles, but the images are missing.

Word 365 converts the "canvas" of the doc-format to a <draw:g> element in odt-format. Inside the group you find <draw:custom-shape> elements, e.g with draw:id="id4" attribute. This element contains a <text:p> element.
Such element may have a <draw:frame> child element, and this contains a <draw:image> element.

That is a valid method to get rich content inside a custom shape. But LibreOffice cannot interpret it.

In the past it was not necessary to support rich content in shapes, because no application used it. But as Word 365 now writes it, it would be good to support it too.
Comment 1 Regina Henschel 2019-01-28 22:07:16 UTC
I seems LO can already use it by the new feature "text box in custom shape", but it is not used when opening a file not created by LibreOffice.
Comment 2 Xisco Faulí 2019-03-25 17:10:31 UTC
Created attachment 150275 [details]
comparison LibreOffice 6.3 Master and MSO 2010
Comment 3 Xisco Faulí 2019-03-25 17:12:00 UTC
Reproduced in

Version: 6.3.0.0.alpha0+
Build ID: 82463bdde75447d45e0cd6ed9ab579e0e51ea912
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

and

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4