[英]Create image from Canvas with AVIF image format
AVIF a very promising image format/codec which based on the sample is far better than JPEG. AVIF 是一种非常有前途的图像格式/编解码器,它基于样本远优于 JPEG。 My question is how do you create a AVIF image from a Canvas?我的问题是如何从 Canvas 创建 AVIF 图像?
So instead of JPEG, something like:所以不是JPEG,而是:
canvas.toBlob(function (blob) {}, "image/avif", 1.0)
Is there a polyfill or something to make it work in the browser (encoding image part)?是否有 polyfill 或其他东西可以使其在浏览器中工作(编码图像部分)?
Reference: https://github.com/Kagami/avif.js参考: https://github.com/Kagami/avif.js
Currently no browsers support creation of an AVIF from a canvas, but that should change soon.目前没有浏览器支持从 canvas 创建 AVIF,但这应该很快就会改变。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.