Skip to content

background-image not embedded when embed-resources: true  #980

@mcanouil

Description

@mcanouil

it appears that the background-image is never embedded in the html file for some reason.
If the background image is set with {background-image="assets/background.jpg"}, it is embedded.

The following setup in the yaml, will result in slides without background.
While, it's working fine when the generated html is at the same level as the qmd file it comes from.

format:
  revealjs:
    embed-resources: true
    background-image: background.jpg
    output-file: docs/index.html

The image path is not replaced by a the base64 version of the image.
From the HTML file generated:

      // Parallax background image
       parallaxBackgroundImage: 'background.jpg',

Example: https://github.com/mcanouil/quarto-issues/tree/main/quarto-cli%23980
Version: 0.9.449
Originally from: #951

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrevealjsIssues with the revealjs format

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions