Bug 156107 - Not all images display in calc document
Summary: Not all images display in calc document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Images
  Show dependency treegraph
 
Reported: 2023-06-30 16:59 UTC by shurikvz
Modified: 2023-07-08 18:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test file + screenshot (1.30 MB, application/x-zip-compressed)
2023-06-30 17:01 UTC, shurikvz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shurikvz 2023-06-30 16:59:34 UTC
Description:
While xlsx document is opened not all inserted images are shown. Here is screenshot with the example of how it looks in Excel and how it looks in LibreOffice. In addition, after saving this file in LibreOffice, such damaged elements disappear and are also absent when opened further in Excel.
Example of file in attachement.

Steps to Reproduce:
1. Just open attached document


Actual Results:
Not all images shown. After saving file it opens in Excel with some images deleted.

Expected Results:
All images shown. After saving file it opens in Excel also with all images shown.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 1 shurikvz 2023-06-30 17:01:32 UTC
Created attachment 188140 [details]
test file + screenshot

in archive test file + screenshot of how it expected to be
Comment 2 Julien Nabet 2023-06-30 18:29:25 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

I unzipped the xlsx file and in xl/media/, there are:
- image1.png
- image2.png
- image3.jpeg
- image4.png

The pb is on the jpeg file, for the moment, no idea why.
Comment 3 Julien Nabet 2023-06-30 18:40:22 UTC
Is it a file created from Excel or is it a generated file by some specific applications?
Comment 4 shurikvz 2023-06-30 18:47:36 UTC
(In reply to Julien Nabet from comment #3)
> Is it a file created from Excel or is it a generated file by some specific
> applications?

It was created in Excel.
Comment 5 Julien Nabet 2023-06-30 18:59:40 UTC
(In reply to shurikvz from comment #4)
> (In reply to Julien Nabet from comment #3)
> > Is it a file created from Excel or is it a generated file by some specific
> > applications?
> 
> It was created in Excel.

Ok and I suppose all changes have been in Excel.

Anyway, I tried some basic analysis:
first in xl/drawings/_rels/drawing1.xml.rels

<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image3.jpeg"/>
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image2.png"/>
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image1.png"/>
<Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image4.png"/>
</Relationships>
the 4 images are here, no pb.

then when grepping rId*, knowing that the pb is the jpeg file so "rId3" I got:
julien@debianamd:/tmp/testjul$ fgrep -nRl rId1 *
_rels/.rels
xl/_rels/workbook.xml.rels
xl/worksheets/sheet1.xml
xl/worksheets/_rels/sheet1.xml.rels
xl/workbook.xml
xl/drawings/drawing1.xml
xl/drawings/_rels/drawing1.xml.rels

julien@debianamd:/tmp/testjul$ fgrep -nRl rId2 *
_rels/.rels
xl/_rels/workbook.xml.rels
xl/worksheets/sheet1.xml
xl/worksheets/_rels/sheet1.xml.rels
xl/drawings/drawing1.xml
xl/drawings/_rels/drawing1.xml.rels

julien@debianamd:/tmp/testjul$ fgrep -nRl rId3 *
_rels/.rels
xl/_rels/workbook.xml.rels
xl/drawings/drawing1.xml
xl/drawings/_rels/drawing1.xml.rels

julien@debianamd:/tmp/testjul$ fgrep -nRl rId4 *
xl/_rels/workbook.xml.rels
xl/drawings/drawing1.xml
xl/drawings/_rels/drawing1.xml.rels


I would have expected results from rId1, rId2 and rId4 identical so I would have compared with rId3.
A bit stuck here.