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

自定义节点里面有svg图片,在使用toPNG导出成png图片后,svg图片没有渲染出来 #3712

Closed
li522021642 opened this issue Jun 27, 2023 · 8 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@li522021642
Copy link

Describe the bug

vue3,使用自定义节点里面有svg图片,在导出成png图片后,svg图片没有渲染出来

Your Example Website or App

Steps to Reproduce the Bug or Issue

画布中可以正常渲染 svg图片,但是使用 toPNG 导出图片后,图片里面没有正确渲染

Expected behavior

Screenshots or Videos

No response

Platform

  • OS: [Windows,]
  • Browser: [Chrome,]
  • Version: [109.0.5414.120(正式版本) (64 位)]

Additional context

No response

@li522021642
Copy link
Author

上传不了图片 后面我补上

@li522021642
Copy link
Author

@NewByVector 麻烦看看这个问题,或者有没有替他暂时代替的方案

@zzyyu
Copy link
Contributor

zzyyu commented Jun 27, 2023

有demo嘛

@NewByVector
Copy link
Contributor

已知问题,可以考虑将 svg 图片转换为 base64 格式图片来导出。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jun 27, 2023
@NewByVector
Copy link
Contributor

已经有很多类似的 issue,导出的图片无法显示,导出插件暂时对路径图片处理能力还不够,推荐使用 base64 格式图片。

@mankeheaven
Copy link

这就关了?

@mankeheaven
Copy link

原来原理是这个。为难你们了,这东西,肯定是整不好的,所以,导出图片整个插件,肯定是永远有bug的。html2canvas, 这个思路是个死胡同。
image

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 14, 2024

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.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

4 participants