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

It's not working with Iframes #36

Closed
nigellima opened this issue Dec 2, 2019 · 5 comments
Closed

It's not working with Iframes #36

nigellima opened this issue Dec 2, 2019 · 5 comments
Labels

Comments

@nigellima
Copy link

Is there any workaround to make it work with child iframes?
I've been using this package for a few months and it was working like a charm. But now I had to insert iframe elements in my page and they appear blank in the final image.

Here is the piece of code which I'm using in my Angular application:

htmlToImage
   .toPng(this.contentAreaRef.nativeElement)
   .then((image: string) =>  {
      this.dashboard.thumbnail_base64 = image;
   });

Thanks in advance

@mitesh-agarwal-bh
Copy link

Hi,

I am also stuck in this issue. Did you find any other solution ?

Thanks in advance

@nigellima
Copy link
Author

@me2mitesh hey, so, I kinda found out that it was not possible to generate the screenshot of the page with an inframe in it due to browser security issues. So I gave up on trying it

@vivcat
Copy link
Contributor

vivcat bot commented Oct 28, 2020

Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

Thanks for being a part of the Antv community! 💪💯

@vivcat vivcat bot added the stale label Oct 28, 2020
@vivcat
Copy link
Contributor

vivcat bot commented Dec 8, 2020

Hey again!
It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Thanks again for being part of the Antv community! 💪💯

@vivcat vivcat bot closed this as completed Dec 8, 2020
@vivcat
Copy link
Contributor

vivcat bot commented Dec 8, 2021

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@vivcat vivcat bot locked as resolved and limited conversation to collaborators Dec 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants