File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129 " http://schemas.microsoft.com/office/powerpoint/2012/main" " p15"
130130 })
131131
132+ ; ; extension list, used for SVG image reference inside a blip
133+ (def ext-lst :xmlns.http %3 A %2 F %2 Fschemas.openxmlformats.org %2 Fdrawingml %2 F2006 %2 Fmain /extLst )
134+
132135; ; drawing, binary large image or picture
133136(def blip :xmlns.http %3 A %2 F %2 Fschemas.openxmlformats.org %2 Fdrawingml %2 F2006 %2 Fmain /blip )
134137; ; hyperlinks
Original file line number Diff line number Diff line change 4848 new-val (-> data .relation)]
4949 (assert new-val)
5050 (log/debug " Replacing image relation {} by {}" current-rel new-val)
51- (assoc-in img-node [:attrs attr-key] new-val)))
51+ (-> img-node
52+ (assoc-in [:attrs attr-key] new-val)
53+ ; If placeholder has an SVG graphic, remove so the replacement raster image is used directly:
54+ (update :content remove (comp #{ooxml/ext-lst} :tag )))))
55+
5256
5357(defn- replace-image [marker-loc]
5458 (if-let [img-loc (->> (zip/remove marker-loc)
You can’t perform that action at this time.
0 commit comments