Should you only have one copy of an embedded image? #1123
Unanswered
jdc-cunningham
asked this question in
Q&A
Replies: 1 comment
-
I went with a reference, only embedding the image once on the particular doc. Also I embed all images to be used in a doc immediately instead of per page/as needed (my initial approach). The latter I was having problems with missing images. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have four different images. I have multiple pages in a doc.
So when I call:
If I am to embed/attach that same image to other pages, should I use this reference eg.
img1
(stored somewhere) as opposed to calling the embed function above again?I was having weird problems where the applied images weren't saving to the page.
Further when I tried to use a recursive way to attach images as opposed to a for loop, the for loop was more reliable. The
drawImage
method looks to be synchronous so I don't think I have to wait for it. The recursive vs. loop might not be relevant if my underlying issue is embedding the same photo more than once.Beta Was this translation helpful? Give feedback.
All reactions