Hi Eric,
The theme in Contoso.pptx has the embedded image/jpeg. The following is the part of xml from /ppt/theme/theme1.xml.
<a:blip xmlns:r=”http://schemas.openxmlformats.org/officeDocument/2006/relationships” r:embed=”rId1″>
<a:duotone>
<a:schemeClr val=”phClr”>
<a:tint val=”30000″/>
<a:satMod val=”300000″/>
</a:schemeClr>
<a:schemeClr val=”phClr”>
<a:tint val=”40000″/>
<a:satMod val=”200000″/>
</a:schemeClr>
</a:duotone>
</a:blip>
I see in CopyRelatedImage method, it calls
newPart = ((ThemePart)newContentPart).AddImagePart(oldPart.ContentType);
However, newPart.Uri = “/ppt/slideMasters/media/image.bin” and its image extension is changed from .jpeg to .bin. Do you know why?
How can I create media files under /ppt/media instead of under /ppt/slideMasters/media?
The same thing happens when copying video and audio files. Those files don’t have any file extensions. That is why they are not playable in the generated pptx. Can you let me know how to fix it?
Thanks in advance!!!