是否可以捕获或打印html画布中显示的图像或pdf?
我想通过画布生成一个图像,并能够从该图像生成一个png.
是否有可能让最终用户能够将动画创建的客户端保存为HTML5 Canvas作为单个文件 - 除了保存页面的整个HTML?
有很多关于如何保存为PNG的教程,但在这些情况下动画会丢失.
NeuQuant.js works well when the image width and height are a multiple of 100:
300x300
Otherwise, there is obviously a bug:
299x300
(These were made with this web app.)
I'm 90% sure that the bug is in NeuQuant.js. I have made tests using it with jsgif and omggif, and both encoders have the same bug. It is only obvious with photographic images (quantize to 256 colors) when the image size is anything other than a multiple of 100. …