Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken html images #480

Open
aiosifelis-telus opened this issue Oct 31, 2024 · 1 comment
Open

Broken html images #480

aiosifelis-telus opened this issue Oct 31, 2024 · 1 comment
Labels

Comments

@aiosifelis-telus
Copy link

aiosifelis-telus commented Oct 31, 2024

When the image is generated and downloaded, the images in the node are broken.

The following is a screenshot from the downloaded image.

image

This is how my html is rendered

image

const dataUrl = await toJpeg(ref.current, {
        cacheBust: true,
        backgroundColor: "rgb(244, 244, 247)",
        pixelRatio: 1.4,
        width: ref.current.clientWidth,
        height: ref.current.clientHeight,
      });
const link = document.createElement("a");
     link.download = "my-image-name.png";
     link.href = dataUrl;
     link.click();
  • html-to-image: [e.g. 1.11.11]
  • OS: [e.g. macOS Sonoma 14.6.1]
  • Browser: [e.g. chrome 130.0.6723.70]
@biiibooo
Copy link
Contributor

biiibooo bot commented Oct 31, 2024

👋 @aiosifelis-telus

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant