obsidian-advanced-slides icon indicating copy to clipboard operation
obsidian-advanced-slides copied to clipboard

Excalidraw pictures not showing on slides

Open oke11o opened this issue 2 years ago • 5 comments

Describe the bug Excalidraw pictures not showing on slides. It's look like with https://github.com/MSzturc/obsidian-advanced-slides/issues/119

Plugin version 1.18.1 Obsidian 1.0.3 MacOS 12.6

Excalidraw settings:

  "exportPaddingSVG": 10,
  "keepInSync": true,
  "autoexportSVG": true,
  "autoexportPNG": false,
  "autoexportExcalidraw": true,

oke11o avatar Nov 02 '22 07:11 oke11o

Can not confirm this issue. Plugin version 1.19.0 Obsidian 1.0.3

fnumatic avatar Nov 04 '22 08:11 fnumatic

Me, too.

Maybe this is related to feature request #186.

rdoering avatar Dec 15 '22 08:12 rdoering

Does not work either on my machine

advanced slides: 1.19.0 excalidraw: 1.8.7 Obsidian: 1.1.9 OS: Ubuntu 22.4

I can not embed neither "![[Drawing 2023-01-02 16.43.37.excalidraw]]" nor "![[Drawing 2023-01-02 16.43.37.excalidraw.dark.png]] although both of those files are there and I see the image rendered in the obsidian editor, but not in my slides (not in the preview, not in the html export). I currently do screenshots of those images and embed those.

d80harri avatar Jan 02 '23 17:01 d80harri

I noticed that the exported html usually renders images like ![[someimage.png]] as

<img src="attachemnts/someimage.png>

While excalidraw images ![[someimage.excalidraw]] are just rendered as

<p>![[Drawing 2023-01-02 16.43.37.excalidraw]]</p>

which is kind of strange.

When I try to embed the png version of an excalidraw image with "![[someimage.excalidraw.dark.png]]" it will be rendered as

<img src="Drawing 2023-01-02 16.43.37.excalidraw|.dark.png" alt="" style="object-fit: scale-down">

Don't know what te "|.dark.png" is about, but it also looks like the image is searched in the root folder instead of the attachments folder where I store excalidraw images.

d80harri avatar Jan 02 '23 17:01 d80harri

There is a bug in the lookup for svg/png files that does not work when excalidraw exports both light and dark themes, since that results in files with the endings *.[dark|light].[svg|png] while the plugin expects them to be named *.[svg|png]

So for this to work you would have to turn off that setting. image

jesloper avatar Aug 23 '23 09:08 jesloper