You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/04/17 11:53:57 UTC

[GitHub] [incubator-echarts] leij1ang opened a new issue #10313: svg渲染的图标,导出的图片无法打开

leij1ang opened a new issue #10313: svg渲染的图标,导出的图片无法打开
URL: https://github.com/apache/incubator-echarts/issues/10313
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   1.`echart.init(dom,null{renderer:'svg'})`
   
   2.通过`toolbox`的`saveAsImage`导出图片
   
   图片无法打开
   
   ### What is expected?
   图片正确打开并显示正确
   
   ### What is actually happening?
   文件成功下载
   mac报错:'它可能已损坏,或者可能使用了“预览”无法识别的文件格式。'
   
   ---
   我尝试用getDataURL()和blob导出,拿到的结果是`data:image/svg xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg"`,我猜测,可能是由于svg相关数据没有并转化成base64引起的
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org