Bug 148462 - DOCX: Writer doesn't show the special image in the DOCX document
Summary: DOCX: Writer doesn't show the special image in the DOCX document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Images
  Show dependency treegraph
 
Reported: 2022-04-08 11:12 UTC by Roman Kuznetsov
Modified: 2023-06-03 23:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX Example (77.20 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-04-08 11:13 UTC, Roman Kuznetsov
Details
Screenshot Word vs Writer (93.69 KB, image/png)
2022-04-08 11:15 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Kuznetsov 2022-04-08 11:12:38 UTC
Description:
DOCX: OPEN: Writer doesn't show the special image in the DOCX document

Steps to Reproduce:
1. Open the example from attach in MS Word and in LO Writer and compare it side-by-side


Actual Results:
There is no an important image in the document

Expected Results:
There is an important image in the document


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.4.2
Build ID: 2412653d852ce75f65fbfa83fb7e7b669a126d64
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: ru-RU
Calc: threaded

and in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: efe854bf9b6daff3d0ecf6e3d04bd9a50bfaa3f3
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 1 Roman Kuznetsov 2022-04-08 11:13:02 UTC
Created attachment 179410 [details]
DOCX Example
Comment 2 Roman Kuznetsov 2022-04-08 11:15:06 UTC
Created attachment 179411 [details]
Screenshot Word vs Writer
Comment 3 Stéphane Guillou (stragu) 2022-04-14 15:18:07 UTC
Confirmed that I can't see the picture, nor find it in the navigator, in:

Version: 7.2.6.2 / LibreOffice Community
Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

or in:

Version: 7.3.2.2 / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

But can't see it in OnlyOffice 6.4.2 either.
Comment 4 Timur 2022-04-20 14:02:02 UTC
DOCX is LO created, so it's wrong. That would be filesave problem for which you need to prepare ODT.
It is true that MSO still opens it right and that LO opens it also OK if resavedf in MSO.
Needinfo.
Comment 5 Andrey Cherepanov 2022-04-20 16:15:50 UTC
Picture is embed in document as 
<pic:blipFill>
        <a:blip dor:embed="rId5"/>
        <a:srcRect/>
        <a:stretch>
                <a:fillRect/>
        </a:stretch>
</pic:blipFill>

According https://www.ecma-international.org/publications-and-standards/standards/ecma-376/

pic:blipFill/a:blip should contains attribute r:embed. But replace dor:embed by r:embed:
<pic:blipFill>
        <a:blip r:embed="rId5"/>
        <a:srcRect/>
        <a:stretch>
                <a:fillRect/>
        </a:stretch>
</pic:blipFill>

produces import error: Namespace prefix r for embed on blip is not defined.

But there is defined in writerfilter/source/ooxml/model.xml:
      <define name="AG_Blob">
        <attribute name="r:embed">                                                                                                                                                            
          <data type="string"/>
        </attribute>
        <attribute name="r:link">
          <data type="string"/>
        </attribute>
      </define>

Attributes dor:embed and even embed (see sw/qa/extras/ooxmlexport/ooxmlexport4.cxx:908) are not suitable for a:blip according to standard.
Comment 6 QA Administrators 2022-10-18 03:34:32 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2022-10-18 19:49:32 UTC
Problem still here in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 55ee3ede2bb0211e895053ed3a54bb1c99cc94ca
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded

and I can't create ODT as Timur asked because it isn't my file and please see to Comment 5
Comment 8 Justin L 2023-06-03 23:01:02 UTC
repro 7.6+.
Opening in MSO, looking at the properties and OK'ing modified the image. Saving it allowed it to be seen in LO.