@@ -23,6 +23,7 @@ class CT_Blip(BaseOxmlElement):
2323 """
2424 embed = OptionalAttribute ('r:embed' , ST_RelationshipId )
2525 link = OptionalAttribute ('r:link' , ST_RelationshipId )
26+ extLst = ZeroOrOne ('a:extLst' )
2627
2728
2829class CT_BlipFillProperties (BaseOxmlElement ):
@@ -98,7 +99,7 @@ def _inline_xml(cls):
9899 ' <a:graphic>\n '
99100 ' <a:graphicData uri="URI not set"/>\n '
100101 ' </a:graphic>\n '
101- '</wp:inline>' % nsdecls ('wp' , 'a' , 'pic' , 'r' )
102+ '</wp:inline>' % nsdecls ('wp' , 'a' , 'pic' , 'r' , 'asvg' )
102103 )
103104
104105
@@ -136,7 +137,7 @@ def new(cls, pic_id, filename, rId, cx, cy):
136137 pic = parse_xml (cls ._pic_xml ())
137138 pic .nvPicPr .cNvPr .id = pic_id
138139 pic .nvPicPr .cNvPr .name = filename
139- pic .blipFill .blip .embed = rId
140+ pic .blipFill .blip .extLst . ext . svgBlip . embed = rId
140141 pic .spPr .cx = cx
141142 pic .spPr .cy = cy
142143 return pic
@@ -150,7 +151,13 @@ def _pic_xml(cls):
150151 ' <pic:cNvPicPr/>\n '
151152 ' </pic:nvPicPr>\n '
152153 ' <pic:blipFill>\n '
153- ' <a:blip/>\n '
154+ ' <a:blip>\n '
155+ ' <a:extLst>\n '
156+ ' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">\n '
157+ ' <asvg:svgBlip/>\n '
158+ ' </a:ext>\n '
159+ ' </a:extLst>\n '
160+ ' </a:blip>\n '
154161 ' <a:stretch>\n '
155162 ' <a:fillRect/>\n '
156163 ' </a:stretch>\n '
@@ -162,7 +169,7 @@ def _pic_xml(cls):
162169 ' </a:xfrm>\n '
163170 ' <a:prstGeom prst="rect"/>\n '
164171 ' </pic:spPr>\n '
165- '</pic:pic>' % nsdecls ('pic' , 'a' , 'r' )
172+ '</pic:pic>' % nsdecls ('pic' , 'a' , 'r' , 'asvg' )
166173 )
167174
168175
@@ -189,6 +196,7 @@ class CT_PositiveSize2D(BaseOxmlElement):
189196 """
190197 cx = RequiredAttribute ('cx' , ST_PositiveCoordinate )
191198 cy = RequiredAttribute ('cy' , ST_PositiveCoordinate )
199+ svgBlip = ZeroOrOne ('asvg:svgBlip' )
192200
193201
194202class CT_PresetGeometry2D (BaseOxmlElement ):
@@ -258,6 +266,7 @@ class CT_Transform2D(BaseOxmlElement):
258266 """
259267 off = ZeroOrOne ('a:off' , successors = ('a:ext' ,))
260268 ext = ZeroOrOne ('a:ext' , successors = ())
269+ embed = OptionalAttribute ('r:embed' , ST_RelationshipId )
261270
262271 @property
263272 def cx (self ):
0 commit comments