Issue 123528 - Only placeholder shown for cropped picture in particular .pptx
Summary: Only placeholder shown for cropped picture in particular .pptx
Alias: None
Product: Impress
Classification: Application
Component: open-import (show other issues)
Version: 4.1.0-dev
Hardware: All All
: P3 Major (vote)
Target Milestone: 4.1.0
Assignee: AOO issues mailing list
QA Contact:
Keywords: needmoreinfo
Depends on:
Reported: 2013-10-23 02:53 UTC by fanyuzhen
Modified: 2017-05-20 10:33 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.0.1
Developer Difficulty: ---

Sample PPTX file (200.81 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2013-10-23 06:50 UTC, fanyuzhen
no flags Details
fix patch (1.54 KB, patch)
2013-10-31 09:28 UTC, Clarence GUO review?
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description fanyuzhen 2013-10-23 02:53:39 UTC
Build Info:
AOO401m5(Build:9714)  -  Rev. 1524958

1. Open the sample PPTX file in AOO
2. Check the display of crop image in page 1 and 2

Problem: cannot load the crop image in AOO
Comment 1 fanyuzhen 2013-10-23 02:56:44 UTC
Cannot add an attachment more than 1M, will cut down the pages in original sample file and attach a smaller one soon.
Comment 2 fanyuzhen 2013-10-23 06:50:19 UTC
Created attachment 81798 [details]
Sample PPTX file
Comment 3 Rainer Bielefeld 2013-10-25 05:03:47 UTC
Effect is Reproducible with reporter's sample and "AOO 4.1.0-Dev – English  UI / German locale - [AOO410m1(Build:9750)  -  Rev. 1534248 - 2013-10-22]" on German WIN7 Home Premium (64bit)", own separate user profile 
(because of incomplete LCo selector (Bug 123063) no correct information can be left):

When I open reporter's sample with above mentioned version in edit mode I only see placeholders instead of chart pictures in both slides. The same in Slideshow mode.

Additional information
(a) LibO opens reporter's sample document without problems and shows 
    charts on both slides. Same good result with MS PowerPoint Viewer
(b) pictures also missing in SoftMaker FreeOffice
(c) Regression, charts will be shown with OOo 3.1.1

(d) Already Reproducible with Reproducible with "Ooo 3.1.1 German 
    WIN7 Home Premium (64bit) DE [OOO310m19 (Build 9420)]"!

(e) Also reproducible in LibO 3.4, 3.5, is fixed in LibO  

(f) Works fine with reporter's document opened with LibO and saved from LibO as

But still several questions without answer

(g) What crop operation has been done with the charts in your document?
(h) Why does document contain 2 slides? What do you want to tell?
(i) With what Operating System did you test?
(j) What kind of object is the chart? Simple raster graphic or an OLE object?
(k) With what software have chart picture and sample document been created?
(l) your summary seems to tell that you only see that problem with
    particular graphics and particular documents.pptx?
Comment 4 Clarence GUO 2013-10-31 09:28:51 UTC
Created attachment 81851 [details]
fix patch

The image was represented in OOXML as below:

- <p:pic>
- ... ...
- <mc:AlternateContent xmlns:mc="">
- <mc:Choice xmlns:ma="" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns="" Requires="ma">
- <p:blipFill>
  <a:blip r:embed="rId2" /> 
- ... ...
- <mc:Fallback>
- <p:blipFill>
  <a:blip r:embed="rId3" /> 
- ... ...

'mc:AlternateContent" means it provides alternatives choice for application to draw the image. But this token has not been registed in supporting tokens and it's namespace is "" which has not been registed in supporting namespaces. Then need to regist the token and it's namespace first.
'mc:Choice' means it is the first choice for applicatons to draw the image. It's image is 'rId2' which referenced to "../media/image12.pdf" in *.xml.rels file. So that mean's it's better for applications use PDF compatible functions to draw the image. However, AOO doesn't have this capability, so it will enter into 'mc:Fallback' which means another choice. under 'mc:Fallback', the image is 'rId3' which referenced to "../media/image1.png". AOO has capability to draw PNG images.
However, 'Choice' and 'Fallback' has not been been registed in supporting tokens either, also need to regist them so that AOO can follow fore-mentioned process to draw the image.
Comment 5 Steve Yin 2013-11-01 05:42:12 UTC
For MS Mac Office, with PDF format it can show a vector diagram for the chart.
Reviewed and verified the patch. It works on the latest revision.
Comment 6 SVN Robot 2013-11-01 05:51:40 UTC
"steve_y" committed SVN revision 1537831 into trunk:
i123528: Only placeholder shown for cropped picture in particular .pptx
Comment 7 Steve Yin 2013-11-01 05:56:00 UTC
Committed on trunk at revision 1537831.