mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 00:01:40 +02:00
✨ Upload fill-image data
This commit is contained in:
parent
8952cb4e00
commit
9fc633080a
2 changed files with 61 additions and 22 deletions
|
@ -117,7 +117,8 @@
|
|||
|
||||
(defn resolve-images
|
||||
[file-id node]
|
||||
(if (and (cip/shape? node) (= (cip/get-type node) :image) (not (cip/close? node)))
|
||||
(if (and (not (cip/close? node))
|
||||
(cip/has-image? type node))
|
||||
(let [name (cip/get-image-name node)
|
||||
data-uri (cip/get-image-data node)]
|
||||
(->> (upload-media-files file-id name data-uri)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue