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

新版火狐浏览器下内容多时使用domToCanvas提示Failed image load ,图片黑屏 #91

Open
Merryy99 opened this issue May 20, 2024 · 1 comment

Comments

@Merryy99
Copy link

Merryy99 commented May 20, 2024

Steps To Reproduce

构造大量网页数据,大概两屏,包含echarts图表、表格、图片类的数据,将网页转成图片
domToImage或domToCanvas在火狐有大量的重复样式,导致img的src数据内容超过32MB,Chrome正常,只有火狐的10%左右

Playground for https://codesandbox.io

Playground for https://codepen.io

Playground for https://play.vuejs.org

Error Message & Stack Trace

[modern-screenshot] Failed image load 
data:image/svg+xml;charset=utf-8,.....
error { target: img, isTrusted: true, srcElement: img, currentTarget: img, eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false......

Your Environment

  • modern-screenshot: 4.4.34
  • Browser:firefox 126.0(121.0试过也会,旧版本89.0.2试了不会)
@Merryy99
Copy link
Author

image

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

1 participant