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

🐛 Exporting the Presentation does not export embedded images

Open Runecreed opened this issue 6 months ago • 3 comments

Hello, nice that you're picking up this project again! Was always interested in turning my notes into presentations

I recently gave it a shot and it worked out pretty well; however now that I want to export the presentation and send it to my colleagues the export itself unfortunately did not generate all files necessary to re-visit the presentation for my colleagues.

image

the HTML exported presentation is still pointing to the Obsidian note source reference for images that were embedded

When i use the syntax

![[myImage.png|250x250]]

for the presentation, this image file is not subject for the export generated when clicking on the export to html button

image

this misses some key elements from the presentation if a lot of it is image based ;)

Expected Behavior

When exporting the presentation to HTML, the generated /export directory should also have embedded images sourced, and should point to them in the html version of the slides

Current behaviour

the exported HMTL presentation is attempting to locate embedded images from the ![[..]] obsidian syntax, from the root of your obsidian vault instead of having a copy listed in the /export directory

Steps to reproduce

make a presentation embed an image that is present in your obsidian vault with ![[text.png]] syntax

start slideshow presentation preview export the presentation to HTML

open the index.html page that was generated navigate to the slide that had the image

the image is not going to be found anymore, src is pointing to the wrong path // there is no src of that image in the export directory

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [X] macOS
  • [ ] Windows

Obsidian Version

v1.6.7

Slides Extended Plugin Version

v2.1.1

Checks

  • [ ] I have tried it in the sandbox vault with only this plugin enabled

Possible solution

when exporting, also copy any embedded link files into the export and re-establish the src links to them

Runecreed avatar Aug 28 '24 08:08 Runecreed