Bug 132680 - FILESAVE PPTX: image disappears during roundtrip 365->Impress->365 (though still visible in Impress)
Summary: FILESAVE PPTX: image disappears during roundtrip 365->Impress->365 (though st...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4.3.2 release
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 14:01 UTC by Gerald Pfeifer
Modified: 2020-06-30 12:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample PPTX document (75.69 KB, application/vnd.ms-powerpoint)
2020-05-04 14:01 UTC, Gerald Pfeifer
Details
How it looks like in 365 and Impress during steps 1, 2, and 3 (171.66 KB, image/png)
2020-05-04 14:03 UTC, Gerald Pfeifer
Details
This is how it looks in Office 365 in step 4 (5.23 KB, image/png)
2020-05-04 14:04 UTC, Gerald Pfeifer
Details
This is the PPTX saved by LibreOffice/Impress (64.57 KB, application/vnd.ms-powerpoint)
2020-05-04 14:08 UTC, Gerald Pfeifer
Details
presentation saved in LO and reopened in MSO365 (10.23 KB, image/png)
2020-05-08 14:44 UTC, Marina Latini (SUSE)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2020-05-04 14:01:03 UTC
Created attachment 160329 [details]
Sample PPTX document

1. Edit presentation in Office 365 and save.
2. View in LibreOffice.
3. Save to a new file from LibreOffice, restart LibreOffice, and view.
4. Upload the new file to Office 365 and view.

Steps 1, 2, and 3 all like the same - in step 4 suddenly the image is gone
(and I had a similar case where a fraction of the image was shown, zoomed
extremely).
Comment 1 Gerald Pfeifer 2020-05-04 14:03:15 UTC
Created attachment 160330 [details]
How it looks like in 365 and Impress during steps 1, 2, and 3
Comment 2 Gerald Pfeifer 2020-05-04 14:04:23 UTC
Created attachment 160331 [details]
This is how it looks in Office 365 in step 4
Comment 3 Gerald Pfeifer 2020-05-04 14:08:49 UTC
Created attachment 160332 [details]
This is the PPTX saved by LibreOffice/Impress
Comment 4 Marina Latini (SUSE) 2020-05-08 14:39:33 UTC
Reproducers:
---------------
LibreOffice:
Version: 6.4.3.2
Build ID: 40(Build:2)
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: kf5; 
Locale: en-US (en_GB.UTF-8); UI-Language: en-US
Calc: threaded
---------------
MSO 365 build id: 16.0.12907.37550
---------------
OS:
NAME="openSUSE Tumbleweed"
VERSION_ID="20200504"
---------------
Hardware setup:
* Dell latitude 7200 2-in-1 
* docking station with 2 extra screen connected.
---------------
steps:
1. open the attachment#160329 [details] (Sample PPTX document) with Impress
2. save as pptx
3. re-open with MSO 365
---------------
Actual Result:
* in step 1 the image IS visible in impress
* in step 3 the image IS NOT visible in MSO 365 but there's a frame/shape that I can click on and select. 
IMPORTANT NOTE: the image in step 3 IS visible only during the slideshow.
Comment 5 Marina Latini (SUSE) 2020-05-08 14:44:41 UTC
Created attachment 160539 [details]
presentation saved in LO and reopened in MSO365

How the slide looks like in MSO365 after saving in LO and re-importing in MSO365
Comment 6 Italo Vignoli 2020-05-08 15:03:06 UTC
Two hypothesis: the presentation is a POTX (template) simply renamed in PPTX (but not saved as PPTX), so the association to the image - which I can't find in any of the XMLs (which are a triumph) - is somewhere else, and it's at the placeholder (i.e., where there's an image put this... or something similar), or the presentation is a PPTX but the image has been pasted in a text frame (because if you go to see the slide template there is a text frame there), so the image association hasn't been created (and maybe the association is in an eight-numbered code, of which all the XMLs are full, but it's impossible to find). In both cases, the problem lies in the original file and not in LibreOffice.
Comment 7 Italo Vignoli 2020-05-08 15:11:57 UTC
This is the XML snippet for the image in the original PPTX:

<p:pic>
        <p:nvPicPr>
          <p:cNvPr id="7" name="Picture Placeholder 6"/>
          <p:cNvPicPr>
            <a:picLocks noGrp="1" noChangeAspect="1"/>
          </p:cNvPicPr>
          <p:nvPr>
            <p:ph type="pic" sz="quarter" idx="12"/>
          </p:nvPr>
        </p:nvPicPr>
        <p:blipFill rotWithShape="1">
          <a:blip r:embed="rId3">
            <a:extLst>
              <a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
                <a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>
              </a:ext>
            </a:extLst>
          </a:blip>
          <a:srcRect l="4393" r="4393"/>
          <a:stretch/>
        </p:blipFill>
        <p:spPr/>
      </p:pic>

As you can see, the link to the image in the Media folder is missing, and this might be the reason why LibreOffice is losing the reference, although the XML is exactly the same.
Comment 8 Miklos Vajna 2020-06-30 12:57:24 UTC
Forgot to refer to this bugreport in the commit message, but core.git b00e43fa5848be0cc7ba81b185021511d94cdc00 fixes this.