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).
Created attachment 160330 [details] How it looks like in 365 and Impress during steps 1, 2, and 3
Created attachment 160331 [details] This is how it looks in Office 365 in step 4
Created attachment 160332 [details] This is the PPTX saved by LibreOffice/Impress
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.
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
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.
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.
Forgot to refer to this bugreport in the commit message, but core.git b00e43fa5848be0cc7ba81b185021511d94cdc00 fixes this.