Bug 123024

Summary: image inside custom shape is not supported
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: telesto, xiscofauli
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 123648    
Attachments: image in custom shape, produced by Word 365
comparison LibreOffice 6.3 Master and MSO 2010

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