html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

iOS 下载会出现 txt 错误文件,不是图片格式

Open lucky100zw opened this issue 3 years ago • 2 comments

Please make sure you are testing with the latest release of html2canvas. Old versions are not supported and issues reported for them will be closed.

Please follow the general troubleshooting steps first:

是当前最新版 1.4.0,

Bug reports:

我的需求是把整个移动端页面截图。我们需要截图的页面上有很多图表。 我的代码段是: image 不是所有页面截图都有问题,只有页面内容特别多,页面很长的情况下,才会出错。 我出问题的其中一个页面高度是 19112px,todataURL 结果无内容,只有 "data:," 。 看到之前有过一样的问题, #2463 我设置 scale 参数为 1 的时候,todataURL 结果正常,可以下载图片成功,但是图片会特别模糊。scale > 1 或不设置 scale 参数的时候,todataURL 结果无内容,只有 "data:," 不能正常下载图片

Specifications:

  • html2canvas version tested with: 1.4.0
  • Browser & version: safari 15.1
  • Operating system: ios 15.1

lucky100zw avatar Jan 13 '22 13:01 lucky100zw

请问您解决这个txt文件的问题了吗?非常期待您的回复谢谢~

LeeCareFree avatar Mar 28 '22 10:03 LeeCareFree

同问

ReneeDress avatar Apr 08 '24 03:04 ReneeDress