最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Valid parameters for canvas.toDataURL() - Stack Overflow

programmeradmin1浏览0评论

Today, I saw this article on Twitter about getting Webm data from a canvas:

He uses "image/webp" as a parameter to canvas.toDataURL();

I know that you can pass image/jpeg and image/png but are there are more than that?

I have tried searching for this, but cant find a list

Thanks AH

Today, I saw this article on Twitter about getting Webm data from a canvas: http://ericbidelman.tumblr./post/31486670538/creating-webm-video-from-getusermedia

He uses "image/webp" as a parameter to canvas.toDataURL();

I know that you can pass image/jpeg and image/png but are there are more than that?

I have tried searching for this, but cant find a list

Thanks AH

Share Improve this question asked Sep 14, 2012 at 10:15 Andrew HallAndrew Hall 3,07323 silver badges30 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

Check the document.

Chrome supports the image/webp type.

发布评论

评论列表(0)

  1. 暂无评论