Open Echsecutor opened 5 years ago
Cropping the image to the height of the pdf output pages (727px per default) is a work around for the pdf export, but that will make the HTML Presentation look ugly...
Ok, sorry for the back and forth.
There is a somewhat tricky interplay between setting parallaxBackgroundSize:
and the actual image size and furthermore, the printout through chrome as explained in the README might look different from what is shown in chrome...
Anyway, setting parallaxBackgroundSize: '3200px 727',
leads to a good pdf export, regardless of the image height, but in this case the bg is to small for the HTML view.
When Using a Parallax Background with height larger than the slides height, it is cropped as expected in HTML mode. But in
print-pdf
mode, the full picture is tiled, which means that the background does not fit to the pages.Minimal Example: Starting from https://github.com/hakimel/reveal.js/releases/tag/3.8.0 adding a few slides and large background image:
you get reveal.js.pdf