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

背景图是 http 资源时,生成图片有概率丢失 #34

Closed
jianghai opened this issue Jul 10, 2023 · 2 comments
Closed

背景图是 http 资源时,生成图片有概率丢失 #34

jianghai opened this issue Jul 10, 2023 · 2 comments

Comments

@jianghai
Copy link

background-image: url('https://xx')

@qq15725
Copy link
Owner

qq15725 commented Jul 31, 2023

查看是否传递了太短的 timeout 默认是 30s

domToPng({
  timeout: 30000,
})

查看是否存在加载的网络请求

如果完全没加载,可能需要提供完整的测试样本

@lorenzhh
Copy link

lorenzhh commented Jul 31, 2023

I had the same issue, I don't know why it may happens.
So I configured the domToPng not to use cache by adding:

fetch: {
bypassingCache: true
},

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

No branches or pull requests

3 participants