evilz / vscode-reveal

Revealjs vsCode extension
https://marketplace.visualstudio.com/items?itemName=evilz.vscode-reveal
MIT License
454 stars 146 forks source link

not all used images are present in exported presentation #879

Open boschkundendienst opened 2 years ago

boschkundendienst commented 2 years ago

I use vscode-reveal 4.1.3 with Code - OSS V1.65.1 on Manjaro Linux. I write the slides in a markdown file slides.md and I put all the images in the subfolder img.

Preview and everything works perfect so far but when I export the entire presentation the subfolder for the images does not contain all used images only some. I could not find out yet, which ones are chosen.

In the export folder there is also a subfolder img which as I said does not contain all images used but when clicking through the different slides in code the image of the currently editing slide is automatically added to the export folder but when I click on the "Export in HTML" button in vscode-reveal the entire export folder is recreated and only 3 to 5 of the 11 images are added properly.

Most of the images are added like this

<!-- .slide: style="text-align: left; font-size: 35px;"
 data-background-image="images/background02.jpg"
 data-background-size="960x 700x"
--> 

One (logo.png) is added at the beginning with

---
title: "Titel"
controls: true
controlsTutorial: true
controlsLayout: "bottom-right"
slideNumber: true
theme: "night"
transition: "zoom"
highlightTheme: "monokai"
logoImg: "images/logo.png"
---

Any ideas why this happens?

evilz commented 2 years ago

Export is very dummy, it export loaded ressources. I think Data background is a lazy loading so it does not come on export.