small-vagetable
small-vagetable
> 我认为这是由于生成的图像的大小造成的,因为错误中附带的图像在我这边是 32mo,而文档中指出如果 DOM 很大,可能会出现问题。 [由于 dataURI[限制不同,](https://stackoverflow.com/questions/695151/data-protocol-url-size-limitations/41755526#41755526) 渲染会在巨大的 DOM 上失败。]( https://github.com/bubkoo/html-to-image?tab=readme-ov-file#things-to-watch-out-for ) https://stackoverflow.com/questions/695151/data-protocol-url-size-limitations/41755526#41755526[](https://stackoverflow.com/questions/695151/data-protocol-url-size-limitations/41755526#41755526)[](https://github.com/bubkoo/html-to-image?tab=readme-ov-file#things-to-watch-out-for) [](https://stackoverflow.com/questions/695151/data-protocol-url-size-limitations/41755526#41755526) @leCheveuCodeur I'm thinking the same as you, because the image that came with me is 38MB....