相关疑难解决方法(0)

将HTML Canvas捕获为gif/jpg/png/pdf?

是否可以捕获或打印html画布中显示的图像或pdf?

我想通过画布生成一个图像,并能够从该图像生成一个png.

javascript html5 png export canvas

684
推荐指数
8
解决办法
55万
查看次数

保存使用HTML5 Canvas创建的动画

是否有可能让最终用户能够将动画创建的客户端保存为HTML5 Canvas作为单个文件 - 除了保存页面的整个HTML?

有很多关于如何保存为PNG的教程,但在这些情况下动画会丢失.

html5-canvas

7
推荐指数
1
解决办法
4867
查看次数

NeuQuant.js (JavaScript color quantization) hidden bug in JS conversion

NeuQuant.js works well when the image width and height are a multiple of 100:

300x300 GIF动画 300x300

Otherwise, there is obviously a bug:

299x300 GIF动画 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. …

javascript quantization neural-network

2
推荐指数
1
解决办法
1215
查看次数