spectacle icon indicating copy to clipboard operation
spectacle copied to clipboard

Background images are not rendered in exported PDF (?exportMode=true)

Open hinok opened this issue 5 years ago • 3 comments

Describe Your Environment

What version of Spectacle are you using? (can be found by running npm list spectacle)

[email protected]

What version of React are you using? (can be found by running npm list react)

[email protected]

What browser are you using?

chrome (newest version)

What machine are you on?

macOS / macbook pro

Describe the Problem

Background image should be rendered in ?exportMode.

  • https://codesandbox.io/s/simple-spectacle-example-whbgc
  • https://whbgc.csb.app/?exportMode=true&slide=0&slideElement=-1

Expected behavior: [What you expect to happen] Background image should be rendered

Actual behavior: [What actually happens] Background image is not rendered

Additional Information

N/A

hinok avatar May 04 '20 20:05 hinok

How odd - I don't see a slide with a custom image in the exported version of this Deck, but I see it in the normal presentation. It looks like slides with a backgroundImg but no other content are failing to render side-by-side in exportMode. Going to look into this a little further.

kale-stew avatar Jun 17 '20 18:06 kale-stew

@hinok hello - v7 of spectacle correctly renders the backgroundImg when exportMode=true. You can observe this in your initial codesandbox simply by bumping the spectacle dependency to be "^7.0.0"

gingerrific avatar Mar 16 '21 22:03 gingerrific

@gingerrific Thanks, it seems that it works correctly on 7.0.4.

hinok avatar Mar 17 '21 22:03 hinok