{"id":9356,"date":"2020-04-08T15:42:38","date_gmt":"2020-04-08T07:42:38","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9356"},"modified":"2022-08-01T11:13:17","modified_gmt":"2022-08-01T03:13:17","slug":"avif-image-format","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2020\/04\/avif-image-format\/","title":{"rendered":"AVIF\u56fe\u7247\u683c\u5f0f\u7b80\u4ecb"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9356\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9356<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202004-avif.png';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/202004\/13-09-cover.png\" width=\"285\" height=\"171\" alt=\"\u5360\u4f4d\u56fe\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001\u524d\u8a00<\/h3>\n<p>\u6253\u5f00caniuse\u9996\u9875\uff0c\u5728\u6700\u65b0\u7684\u7279\u6027\u8fd9\u91cc\u770b\u5230\u4e00\u4e2a\u964c\u751f\u7684\u4e1c\u897f\uff0c\u4e00\u4e2a\u540d\u4e3aAVIF\u7684\u56fe\u7247\u683c\u5f0f\uff0c\u8fd9\u4e48\u540d\u8bcd\u6709\u610f\u601d\uff0cAV\uff1fIF\uff1f\u7b49\u4e0b\uff0c\u6211\u5148\u7cfb\u4e2a\u5b89\u5168\u5e26\uff0c\u53ef\u4ee5\u4e86\uff0c\u8ba9\u6211<span class=\"hidden\">\uff08\u5f20\u946b\u65ed\uff09<\/span>\u5f00\u8fdb\u53bb\u770b\u770b\u662f\u4e2a\u4ec0\u4e48\u4e1c\u4e1c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/2020-04-08_111000.png\" width=\"422\" height=\"405\" alt=\"caniuse\u9996\u9875AVIF\"><\/p>\n<p>\u7ed3\u679c\u4e07\u91cc\u6c5f\u5c71\u4e00\u7247\u7ea2\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/2020-04-08_111352.png\" width=\"480\" height=\"409\" alt=\"\u6682\u65f6\u6ca1\u6709\u6d4f\u89c8\u5668\u652f\u6301\"><\/p>\n<p>\u6211\u4e00\u77ac\u95f4\u5c31\u660e\u767d\u4e8b\u60c5\u4e0d\u7b80\u5355\uff0c\u8fd9\u73a9\u610f\u4e0d\u5f97\u4e86\u3002<\/p>\n<p>\u5f00\u5929\u8f9f\u5730\u5934\u4e00\u56de\uff0c\u8fd8\u6ca1\u6709\u4efb\u4f55\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u5c31\u628a\u4e00\u4e2a\u7279\u6027\u653e\u4e0a\u6765\u7684\uff0c\u8bf4\u660e\u8fd9\u53ae\u6f5c\u529b\u53ef\u4ee5\uff0c\u672a\u6765\u4e4b\u661f\uff0c\u5927\u817f\u52a1\u5fc5\u7acb\u523b\u62b1\u4e0a\u3002<\/p>\n<p>\u4e8e\u662f\u6211\u5c31\u53c2\u8003\u76f8\u5173\u6587\u6863\uff0c\u7ec8\u4e8e\u5927\u81f4\u641e\u6e05\u695a\u4e86AVIF\u56fe\u7247\u683c\u5f0f\u2026\u2026\u2026\u2026\u7684\u8868\u9762\u4e00\u4e9b\u652f\u6301\uff0c\u5bf9\uff0c\u5c31\u8868\u9762\u8fd9\u70b9\u4e1c\u897f\uff0c\u4ec0\u4e48\u7b97\u6cd5\u4e4b\u7c7b\uff0c\u5bf9\u6bd4\u8d77\uff0c\u8d85\u8fc7\u4e86\u6211\u7684\u6280\u80fd\u8303\u7574\uff0c\u8bb2\u4e0d\u6765\uff0c\u8bb2\u4e0d\u6765\u3002<\/p>\n<p>\u672c\u6587\u5927\u91cf\u5185\u5bb9\u53c2\u8003Netflix\u5b98\u65b9\u6280\u672f\u535a\u5ba2\u201c<a href=\"https:\/\/netflixtechblog.com\/avif-for-next-generation-image-coding-b1d75675fe4\">AVIF for Next-Generation Image Coding<\/a>\u201d\u8fd9\u7bc7\u6587\u7ae0\uff0c\u539f\u6587\u5f88\u957f\uff0c\u672c\u6587\u5c31\u53d6\u4e4b\u7cbe\u534e\u7b80\u5355\u4ecb\u7ecd\u3002<\/p>\n<p><strong>\u66f4\u65b0\u4e8e2021\u5e747\u670826\u65e5<\/strong><\/p>\n<p>Chrome\u6d4f\u89c8\u5668\u5df2\u7ecf\u5b8c\u5168\u652f\u6301AVIF\u683c\u5f0f\uff0cFirefox\u5b9e\u9a8c\u652f\u6301\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202107\/2021-07-26_213415.png\" width=\"562\" height=\"243\" alt=\"AVIF 2021\u5e747\u6708\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p><strong>\u66f4\u65b0\u4e8e2022-08-01<\/strong><\/p>\n<p>Safari 16 \u5df2\u7ecf\u786e\u8ba4\u652f\u6301\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202208\/2022-08-01_111122.png\" width=\"727\" height=\"272\" alt=\"Safari \u652f\u6301 AVIF\" class=\"alignnone size-medium\" \/><\/p>\n<h3>\u4e8c\u3001AVIF\u4e0e\u5948\u98deNetflix<\/h3>\n<p>AVIF\u8fd9\u79cd\u56fe\u7247\u683c\u5f0f\u662fNetflix\u8fd9\u5bb6\u516c\u53f8\u5728\u4eca\u5e74\u60c5\u4eba\u8282\u516c\u5e03\u7684\u3002<\/p>\n<p>Netflix\u662f\u4e00\u5bb6\u6d41\u5a92\u4f53\u5f71\u89c6\u516c\u53f8\uff0c\u5fc5\u7136\u4f1a\u6709\u5927\u91cf\u5f71\u89c6\u6d77\u62a5\uff0c\u90fd\u662f\u5927\u56fe\u7247\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/2020-04-08_113230.jpg\" width=\"593\" height=\"348\" alt=\"\u6d77\u62a5\u56fe\u7247\"><\/p>\n<p>\u56e0\u6b64\uff0cNetflix\u5bf9\u9ad8\u6e05\u6670\u540c\u65f6\u4f53\u79ef\u8f83\u5c0f\u7684\u56fe\u7247\u8bc9\u6c42\u5f88\u9ad8\uff0c\u9700\u8981\u4e00\u79cd\u66ff\u4ee3JPEG\u7684\u65b9\u6cd5\uff0c\u8fd9\u79cd\u65b0\u7684\u65b9\u6cd5\u9700\u8981\u652f\u6301\u4ee5\u4e0b\u7279\u6027\uff1a<\/p>\n<p>a\uff09\u5f97\u5230\u5e7f\u6cdb\u652f\u6301\uff0cb\uff09\u5177\u6709\u66f4\u597d\u7684\u538b\u7f29\u6548\u7387\uff0cc\uff09\u5177\u6709\u66f4\u5e7f\u6cdb\u7684\u529f\u80fd\u96c6\u3002<\/p>\n<p>\u7136\u540eNetflix\u89c9\u5f97AV1\u56fe\u50cf\u6587\u4ef6\u683c\u5f0f\uff08AVIF\uff09\u5f88\u6709\u6f5c\u529b\uff0c\u4e8e\u662f\u51b3\u5b9a\u516c\u5e03\u548c\u5f00\u6e90\u3002<\/p>\n<p><span class=\"hidden\">\u4f5c\u8005\uff1a\u5f20\u946b\u65ed<\/span><\/p>\n<h4>\u5df2\u6709\u7684\u56fe\u7247\u683c\u5f0f\u4e3a\u4ec0\u4e48\u4e0d\u884c<\/h4>\n<p>\u9664\u4e86JPG\uff0c\u8fd8\u6709\u5176\u4ed6\u51e0\u79cd\u4e3a\u4eba\u719f\u77e5\u7684\u56fe\u7247\u7f16\u7801\u683c\u5f0f\uff0c\u5982JPEG2000\u3001WebP\u4e0eHEVC\u3002<\/p>\n<p>\u4f46\u5747\u6709\u4e0d\u8db3\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u57fa\u4e8e\u79bb\u6563\u5c0f\u6ce2\u53d8\u6362\uff08DWT\uff09\u7684JPEG 2000\u683c\u5f0f\u662f2000\u5e74JPEG\u7684\u7ee7\u627f\u8005\u3002\u5b83\u5e26\u6765\u4e86\u7a7a\u95f4\u53ef\u4f38\u7f29\u6027\u3001\u611f\u5174\u8da3\u533a\u57df\u7f16\u7801\u3001\u652f\u6301\u6bd4\u7279\u6df1\u5ea6\u8303\u56f4\u3001\u989c\u8272\u5e73\u9762\u6570\u76ee\u7075\u6d3b\u3001\u65e0\u635f\u7f16\u7801\u7b49\u4e00\u7cfb\u5217\u9644\u52a0\u7279\u6027\uff0c\u968f\u7740\u8fd0\u52a8\u7684\u6269\u5c55\uff0c2004\u5e74\u88ab\u516c\u8ba4\u4e3a\u6570\u5b57\u7535\u5f71\u7684\u89c6\u9891\u7f16\u7801\u6807\u51c6\u3002\u4f46\u5e76\u6ca1\u6709\u5f97\u5230\u5f88\u597d\u7684\u5e02\u573a\u63a8\u5e7f\uff08\u5bf9\u6bd4Google\u5927\u529b\u63a8\u5d07\u7684WebP\u3001\u82f9\u679cIOS\u7cfb\u7edf\u652f\u6301\u7684 HEVC\uff09\u3002JPEG2000\u5728\u6570\u5b57\u5f71\u9662\u3001\u6307\u7eb9\u9274\u522b\u7b49\u5c0f\u8303\u56f4\u5185\u6d41\u884c\uff0c\u4f46\u660e\u663e\u7f3a\u4e4f\u66f4\u52a0\u5f3a\u5927\u3001\u5927\u4f17\u5316\u3001\u5546\u4e1a\u5316\u7684\u8f6f\u4ef6\u751f\u6001\u652f\u6301\uff0c\u6545\u800c\u5e76\u6ca1\u6709\u5b9e\u73b0\u771f\u6b63\u7684\u843d\u5730\u666e\u53ca\u3002<\/li>\n<li>WebP \u6e90\u4e8eVP8\uff0c\u662fGoogle 2010\u5e74\u5f00\u6e90\u51fa\u6765\u7684\u56fe\u50cf\u7f16\u89e3\u7801\u7b97\u6cd5\uff0c\u53ef\u4ee5\u8bf4\u662f\u201c\u542b\u7740\u91d1\u6c64\u5319\u51fa\u751f\u201d\uff0cYouTube\u3001Gmail\u3001Google Play\u5747\u5e94\u7528WebP\u56fe\u7247\u683c\u5f0f\u30022018\u5e74\u4e4b\u540e\uff0c\u6d4f\u89c8\u5668Edge\u3001Firefox\u4e5f\u5ba3\u5e03\u652f\u6301WebP\u683c\u5f0f\u3002\u4f46\u5c31\u76ee\u524d\u6765\u8bf4\uff0cWebP\u4ecd\u53ea\u88ab\u770b\u4f5cPNG\u66f4\u9ad8\u6548\u5feb\u6377\u7684\u66ff\u4ee3\u65b9\u6848\uff0c\u800c\u4e14Google\u7684\u4e00\u4e9b\u975e\u5f00\u6e90\u7684\u6280\u672f\u603b\u662f\u80fd\u795e\u5947\u5730\u963b\u788d\u56fe\u7247\u7684\u5206\u4eab\u3002<\/li>\n<li>HEVC\u662fAVC(H.264)\u7684\u540e\u7ee7\u4ea7\u54c1\uff0c\u6027\u80fd\u4f18\u79c0\uff0c\u4f60\u53ef\u4ee5\u5728Apple\u8bbe\u5907\u4e0a\u5c06HEIF\uff08HEIF\u662f\u5b58\u50a8HEVC\u7f16\u7801\u7684\u9759\u6001\u56fe\u50cf\u7684\u5bb9\u5668\uff09\u73a9\u51fa\u5404\u79cd\u82b1\u6837\u3002\u53ef\u60dc\u7684\u662f\uff0c\u8fd9\u652f\u5927\u4f6c\u7684\u201c\u72ec\u82d7\u201d\u5b58\u5728\u4e13\u5229\u8d39\u7528\u3002<\/li>\n<\/ul>\n<h4>AVIF\u7684\u4f18\u52bf<\/h4>\n<p>\u6211\u89c9\u5f97AVIF\u56fe\u7247\u683c\u5f0f\u6709\u4e0b\u9762\u51e0\u4e2a\u4f18\u70b9\uff1a<\/p>\n<ol>\n<li>\u4e00\u7edf\u5929\u4e0b\uff1b<\/li>\n<li>\u538b\u7f29\u6e9c\u6e9c\u6e9c\uff1b<\/li>\n<li>\u5f00\u6e90JS\u53ef\u89e3\u6790\uff1b<\/li>\n<\/ol>\n<p>AVIF\u7531\u5f00\u6e90\u7ec4\u7ec7AOMedia\u5f00\u53d1\uff0cNetflix\u3001Google\u4e0eApple\u5747\u662f\u8be5\u7ec4\u7ec7\u7684\u6210\u5458\u3002\u770b\u5230\u6ca1\uff0c\u51e0\u4e2a\u5927\u4f6c\u90fd\u5728\uff0c\u56e0\u6b64\u662f\u4e00\u7edf\u5929\u4e0b\u7684\u56fe\u7247\u683c\u5f0f\u3002<\/p>\n<p>\u5176\u4ed6\u4f18\u70b9\u53ef\u4ee5\u4e13\u95e8\u5f00\u4e00\u4e2a\u5c0f\u8282\u8bb2\u4e0b\u3002<\/p>\n<p><strong>add on \u7fcc\u65e5<\/strong><br \/>\nfrom\u5fae\u535a <a href=\"https:\/\/weibo.com\/u\/1708684567\" rel=\"noopener\" target=\"_blank\">@\u7d2b\u4e91\u5983<\/a><\/p>\n<blockquote><p>avif \u56fe\u7247\u652f\u6301\u5728metadata\u4e2d\u5bf9\u539f\u59cb\u56fe\u7247\u8fdb\u884c\u4e00\u4e9b\u53d8\u5f62\u64cd\u4f5c\uff0c\u6709\u65cb\u8f6c\uff08irot\uff09\uff0c\u955c\u50cf\uff08imr\uff09\u548c\u88c1\u5207\uff08clap\uff09\u4e09\u79cd\uff0c\u5c24\u5176\u662f\u88c1\u5207\u633a\u795e\u5947\u7684\uff0c\u4e5f\u5c31\u662f\u5ba2\u6237\u7aef\u770b\u5230\u7684\u56fe\u53ef\u80fd\u53ea\u662f\u4e00\u5f20\u5927\u56fe\u7684\u4e00\u90e8\u5206\uff0c\u660e\u660e\u5b8c\u6574\u56fe\u7247\u5df2\u7ecf\u4e0b\u8f7d\u4e0b\u6765\u4e86\uff0c\u4f46\u4f60\u5c31\u662f\u770b\u4e0d\u5230\u5176\u5b83\u90e8\u5206\u3002 <\/p><\/blockquote>\n<h3>\u4e09\u3001AVIF\u56fe\u7247\u683c\u5f0f\u7684\u538b\u7f29\u5bf9\u6bd4<\/h3>\n<p>AVIF\u662f\u57fa\u4e8eAV1\u7684\u65b0\u56fe\u50cf\u683c\u5f0f\uff0c\u4f7f\u7528HEIF\u4f5c\u4e3a\u5bb9\u5668\uff08\u548cApple\u7684HEVC\u4e00\u6837\uff09\u548cAV1\u5e27\uff0c\u538b\u7f29\u8d28\u91cf\u8fd8\u771f\u662f\u53f9\u4e3a\u89c2\u6b62\u3002<\/p>\n<p>\u4e0b\u9762\u51e0\u5f20\u56fe\u662f\u5b98\u65b9\u63d0\u4f9b\u7684\uff1a<\/p>\n<p>\u8fd9\u662f\u539f\u59cb\u56fe\uff0c\u65e0\u635fPNG\uff0c\u8fd1\u4e4e700K\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imgservices-1252317822.file.myqcloud.com\/image\/20200408\/xg4k80h27n.png\" onerror=\"this.src='https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/origin-source.jpg';\" width=\"728\" height=\"485\" alt=\"\u539f\u59cb\u56fe\"><\/p>\n<p>JPEG 444\u7684\u6548\u679c\u56fe\uff0c\u5927\u5c0f@ 20,429\u5b57\u8282\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imgservices-1252317822.file.myqcloud.com\/image\/20200408\/w1vsywdwe4.png\" onerror=\"this.src='https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/jpeg444.jpg';\" width=\"728\" height=\"485\" alt=\"JPEG444\u56fe\u7247\"><\/p>\n<p>\u8fd9\u662fAVIF\u7684\u6548\u679c\u56fe\uff0c\u5927\u5c0f@ 19,788\u5b57\u8282\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imgservices-1252317822.file.myqcloud.com\/image\/20200408\/bjh6e2j31m.png\" onerror=\"this.src='https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/avif444.jpg';\" width=\"728\" height=\"485\" alt=\"AVIF444\u56fe\u7247\"><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u5728\u540c\u6837\u5c3a\u5bf8\u5927\u5c0f\u8303\u56f4\u5185\uff0cJPEG\u683c\u5f0f\u7684\u56fe\u5f62\u5df2\u7ecf\u7cca\u6210\u6d46\u7cca\u4e00\u6837\uff0c\u5927\u7247\u7684\u660e\u663e\u7684\u8272\u5757\u8272\u6761\u5c31\u50cf\u662f\u6591\u9a73\u7684\u8001\u5efa\u7b51\uff0c\u65e0\u6cd5\u76f4\u89c6\u3002\u4f46\u662f\uff0cAVIF\u683c\u5f0f\u7684\u56fe\u5f62\u663e\u793a\u5374\u975e\u5e38OK\uff0c\u4f53\u79ef\u4e5f\u5f88\u5c0f\u3002<\/p>\n<p>\u6b64\u65f6\u7684AVIF\u76f8\u6bd4\u65e0\u635fPNG\u6709\u7ea659\u500d\u7684\u538b\u7f29\u6027\u80fd\uff08\u539f\u59cb\u56fe\u50cf\u5c3a\u5bf8768&#215;512\uff0c\u56e0\u6b64\u65e0\u635f\u5b57\u8282\u6570\u662f768x512x3 \uff0c\u73b0\u5728\u538b\u7f29\u523020k\uff0c\u538b\u7f29\u6bd459\u500d\uff09\u3002<\/p>\n<p>\u5982\u679c\u6211\u4eec\u63d0\u9ad8\u4ee5\u4e0b\u56fe\u7247\u7684\u538b\u7f29\u8d28\u91cf\uff0c\u4e0d\u8981\u538b\u7f29\u90a3\u4e48\u72e0\uff0c\u518d\u770b\u4e0bJPG\u56fe\u7247\u548cAVIF\u56fe\u7247\u6548\u679c\uff0c\u90fd\u662f\u65e0\u635fPNG\u622a\u56fe\u6548\u679c\uff0c\u4ee5\u4fbf\u51c6\u786e\u5bf9\u6bd4\u3002<\/p>\n<p>JPEG 444\u7684\u6548\u679c\u56fe\uff0c\u5927\u5c0f@ 40,276\u5b57\u8282\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imgservices-1252317822.file.myqcloud.com\/image\/20200408\/vhgmb5rbr2.png\" onerror=\"this.src='https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/jpg444-up.jpg';\" width=\"728\" height=\"485\" alt=\"JPEG444\u56fe\u7247\"><\/p>\n<p>\u8fd9\u662fAVIF 444\u7684\u6548\u679c\u56fe\uff0c\u5927\u5c0f@ 39,819\u5b57\u8282\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imgservices-1252317822.file.myqcloud.com\/image\/20200408\/zaf4ta6eqy.png\" onerror=\"this.src='https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/avif444-up.jpg';\" width=\"728\" height=\"485\" alt=\"AVIF444\u56fe\u7247\"><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0cJPG\u56fe\u7247\u7684\u5929\u7a7a\u6709\u5f88\u591a\u660e\u663e\u989c\u8272\u6e17\u6f0f\uff0c\u89c6\u89c9\u4e0a\u4e00\u70b9\u4e5f\u4e0d\u5e73\u6ed1\uff0c\u800cAVIF\u56fe\u50cf\u4e0e\u539f\u59cb\u56fe\u50cf\u89c6\u89c9\u6548\u679c\u76f8\u5f53\uff0c\u8fd9\u91cc\u7684\u538b\u7f29\u7cfb\u6570\u4e3a29\u500d\u3002<\/p>\n<p>\u5b98\u65b9\u8fd8\u63d0\u4f9b\u4e86\u5f88\u591a\u5176\u4ed6\u5bf9\u6bd4\u56fe\uff0c\u8fd8\u6709\u5bf9\u6bd4\u56fe\u6807\u548c\u6570\u636e\uff0c\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u5c55\u793a\u4e86\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u53bb\u6587\u7ae0\u4e00\u5f00\u59cb\u63d0\u5230\u7684\u535a\u6587\u5730\u5740\u67e5\u9605\u3002<\/p>\n<p>\u603b\u800c\u8a00\u4e4b\u4e00\u53e5\u8bdd\uff0cAVIF\u56fe\u7247\u683c\u5f0f\u538b\u7f29\u5f88\u68d2\uff0c\u4ef6\u5927\u5c0f\u6bd4JPEG\u5c0f10\u500d\uff0c\u5177\u6709\u76f8\u540c\u7684\u56fe\u50cf\u8d28\u91cf\u3002<\/p>\n<p>\u53e6\u5916\uff0cAVIF\u4e0d\u4ec5\u652f\u6301\u6807\u51c6\u52a8\u6001\u8303\u56f4\uff08SDR\uff09\u56fe\u50cf\uff0c\u8fd8\u652f\u6301\u9ad8\u52a8\u6001\u8303\u56f4\uff08HDR\uff09\u548c\u5bbd\u8272\u57df\uff08WCG\uff09\u3002\u5b83\u53ef\u4ee5\u5b58\u50a8\u5355\u4e2a\u56fe\u50cf\u548c\u56fe\u50cf\u5e8f\u5217\u3002<\/p>\n<p>AVIF\u662f\u7b26\u5408HEIF\u6807\u51c6\u7684\u683c\u5f0f\u3002<\/p>\n<p>\u79cd\u79cd\u8ff9\u8c61\u8868\u660e\uff0c\u8fd9\u4e00\u6b21\u7684AVIF\u662f\u6765\u771f\u7684\u4e86\u3002<\/p>\n<h3>\u56db\u3001AVIF\u56fe\u50cf\u683c\u5f0f\u8f6c\u6362<\/h3>\n<p>\u5206\u4eab\u4e00\u4e2a\u5728\u7ebf\u8f6c\u6362AVIF\u56fe\u50cf\u683c\u5f0f\u7684\u5de5\u5177\uff1a<a href=\"https:\/\/convertio.co\/zh\/formats\/avif\/\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/convertio.co\/zh\/formats\/avif\/<\/a><\/p>\n<p>\u53ef\u4ee5\u628aAVIF\u8f6c\u6362\u6210JPG\uff0cPNG\u683c\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u628aJPG\uff0cPNG\u8f6c\u6362\u6210AVIF\u683c\u5f0f\uff0c\u6bd5\u7adfAVIF\u7f16\u7801\u90fd\u662f\u5f00\u6e90\u7684\u3002<\/p>\n<p>\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2aJPG\u8f6cAVIF\u7684\u64cd\u4f5c\u754c\u9762\u622a\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/2020-04-08_142625.png\" width=\"539\" height=\"341\" alt=\"JPG\u8f6cAVIF\"><\/p>\n<p>\u5982\u679c\u4f60\u53ea\u662f\u60f3\u627e\u4e00\u4e9bAVIF\u56fe\u50cf\u505a\u4e00\u4e9b\u6d4b\u8bd5\u4e4b\u7c7b\uff0c<a href=\"https:\/\/github.com\/AOMediaCodec\/av1-avif\/tree\/master\/testFiles\" target=\"_blank\" rel=\"nofollow noopener\">\u8fd9\u91cc\u6709<\/a>\u56fe\u50cf\u8d44\u6e90\u3002<\/p>\n<p><strong>\u66f4\u65b0\u4e8e2021-07-26<\/strong><\/p>\n<p>\u4e0a\u9762\u5730\u5740\u53ef\u80fd\u8981\u6536\u8d39\uff0c\u4f7f\u7528\u8fd9\u4e2a\u5728\u7ebf\u5e73\u53f0\u5427\uff0c\u4efb\u610f\u683c\u5f0f\u8f6cavif\uff0c\u514d\u8d39\u7684\uff1a<a href=\"https:\/\/avif.io\/\" rel=\"noopener\" target=\"_blank\">https:\/\/avif.io\/<\/a><\/p>\n<p><strong>\u66f4\u65b0\u4e8e2022-08-01<\/strong><\/p>\n<p>\u73b0\u5728\u5df2\u7ecf\u53ef\u4ee5\u547d\u4ee4\u884c\u5de5\u5177\u8f6c\u6362\u4e86\uff08\u9879\u76ee\u5730\u5740\u70b9\u51fb<a href=\"https:\/\/github.com\/lovell\/avif-cli\" rel=\"noopener\" target=\"_blank\">\u8fd9\u91cc<\/a>\uff09\uff1a<\/p>\n<pre>npm install avif<\/pre>\n<p>\u7136\u540e\u8fd0\u884c\uff1a<\/p>\n<pre>npx avif --input=\".\/imgs\/*\" --output=\".\/output\/\" --verbose<\/pre>\n<p>\u5176\u4e2d <code>imgs\/<\/code> \u662f\u8f93\u5165\u6587\u4ef6\u5939\uff0c<code>output\/<\/code> \u662f\u8f93\u51fa\u6587\u4ef6\u5939\u3002<\/p>\n<h3>\u4e94\u3001\u5728\u9879\u76ee\u4e2d\u4f7f\u7528AVIF &#8211; Polyfill<\/h3>\n<p>OK\uff0c\u73b0\u5728\u6709\u4e86AVIF\u56fe\u7247\uff0c\u5982\u4f55\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u5462\uff0c\u90fd\u6ca1\u6709\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u5c82\u4e0d\u662f\u7528\u4e2a\u7a7a\u5927\u5c41\uff0c\u54e6\uff0c\u975e\u4e5f\u975e\u4e5f\uff0c\u56e0\u4e3aAVIF\u9879\u76ee\u662f\u5f00\u6e90\u7684\uff0c\u56e0\u6b64\uff0cweb\u4e2d\u4e5f\u662f\u53ef\u4ee5\u4f7f\u7528JS\u8fdb\u884c\u89e3\u6790\u7684\u3002<\/p>\n<p>\u6709\u8bf7avif polyfill\u9879\u76ee\uff1a<a href=\"https:\/\/github.com\/Kagami\/avif.js\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/Kagami\/avif.js<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202004\/2020-04-08_143243.png\" width=\"377\" height=\"211\" alt=\"avif polyfill\u9879\u76ee\"><\/p>\n<p>demo\u4f53\u9a8c\u5730\u5740\uff1a<a href=\"https:\/\/kagami.github.io\/avif.js\/\" rel=\"nofollow noopener\">https:\/\/kagami.github.io\/avif.js\/<\/a><\/p>\n<h4>\u4f18\u70b9<\/h4>\n<ul>\n<li>\u5c0f\uff0c\u53ef\u9009\u4f9d\u8d56\u9879\uff0cminified&amp;gzip\u540e\u5c0f\u4e8e4kb<\/li>\n<li>\u65b9\u4fbf\uff0c\u76f4\u63a5\u5f15\u5165\u5373\u53ef\u3002JS\u4f1a\u81ea\u52a8\u62e6\u622aAVIF fetch\u8bf7\u6c42<\/li>\n<li>\u5feb\uff0c\u5982\u679c\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u5c31\u4f7f\u7528\u672c\u673a\u89e3\u7801\u5668\uff0c\u4f1a\u76f8\u5f53\u5feb<\/li>\n<\/ul>\n<h4>\u652f\u6301\u6d4f\u89c8\u5668<\/h4>\n<p>\u539f\u751f\u7f16\u7801\u652f\u6301\uff1a<\/p>\n<ul>\n<li>Chrome Desktop 70+<\/li>\n<li>Firefox 63+ (media.av1.enabled\u9700\u8981\u6fc0\u6d3b)<\/li>\n<li>Firefox for Android 64+ (media.av1.enabled \u548c media.av1.use-dav1d \u9700\u8981\u6fc0\u6d3b)<\/li>\n<li>Edge 18+ (AV1 Video Extension\u9700\u8981\u5b89\u88c5)<\/li>\n<li>Bromite 71+<\/li>\n<\/ul>\n<p>\u4f7f\u7528AV1 polyfill\uff1a<\/p>\n<ul>\n<li>Chrome 57+<\/li>\n<li>Firefox 53+<\/li>\n<li>Edge 17+<\/li>\n<li>Safari 11+<\/li>\n<\/ul>\n<h4>\u4f7f\u7528<\/h4>\n<pre>npm install avif.js<\/pre>\n<pre><span style=\"color:green;\">\/\/ \u4e0b\u9762\u4ee3\u7801\u653e\u5230reg.js\u4e2d\uff0c\u7136\u540e\u628aavif-sw.js\u653e\u5728web\u670d\u52a1\u5668\u6839\u76ee\u5f55<\/span>\r\nrequire(\"avif.js\").register(\"\/avif-sw.js\");<\/pre>\n<pre>&lt;body&gt;\r\n  <span style=\"color:green;\">&lt;!-- \u6ce8\u518cworker --&gt;<\/span>\r\n  &lt;script src=\"reg.js\"&gt;&lt;\/script&gt;\r\n\r\n  <span style=\"color:green;\">&lt;!-- \u4f7f\u7528IMG\u6807\u7b7e\u5d4c\u5165AVIF\u56fe\u50cf --&gt;<\/span>\r\n  &lt;img src=\"image.avif\"&gt;\r\n\r\n  <span style=\"color:green;\">&lt;!-- \u6216\u8005\u901a\u8fc7CSS\u5c5e\u6027 --&gt;<\/span>\r\n  &lt;div style=\"background: url(image2.avif)\"&gt;\r\n    by zhangxinxu(.com)\r\n  &lt;\/div&gt;\r\n&lt;\/body&gt;<\/pre>\n<h4>\u5176\u4ed6<\/h4>\n<ul>\n<li>\u9700\u8981\u4f7f\u7528HTTPS\u534f\u8bae<\/li>\n<li>\u4e0d\u652f\u6301\u5728Firefox\/Edge\u9690\u79c1\u6a21\u5f0f\u7a97\u53e3<\/li>\n<li>\u9875\u9762\u7b2c\u4e00\u6b21\u8bbf\u95ee\u9700\u8981\u91cd\u52a0\u8f7d\u6765\u663e\u793a\u9759\u6001\u8d44\u6e90<\/li>\n<\/ul>\n<p>\u5b9e\u9645\u4e0a\uff0c\u7406\u8bba\u4e0a\u6d4f\u89c8\u5668\u4e0d\u652f\u6301Service workers\u4e5f\u662f\u53ef\u4ee5\u89e3\u6790AVIF\uff0c\u8ba9\u6d4f\u89c8\u5668\u663e\u793a\u7684\uff0c\u95ee\u9898\u5c31\u662ffetch avif\u683c\u5f0f\u6587\u4ef6\u4e0d\u65b9\u4fbf\uff0c\u6b64Polyfill\u811a\u672c\u65e5\u540e\u53ef\u80fd\u4f1a\u8fdb\u884c\u652f\u6301\u3002<\/p>\n<h3>\u516d\u3001\u7ed3\u8bed<\/h3>\n<p>\u4e3a\u5565\u8fd9\u4e9b\u6807\u51c6\u554a\uff0c\u89c4\u5219\u554a\uff0c\u90fd\u662fAmerican\u5236\u5b9a\u7684\u5462\uff1f<\/p>\n<p>\u6211\u8981\u7422\u78e8\u7422\u78e8\u662f\u4e0d\u662f\u56fd\u5185\u4e5f\u53ef\u4ee5\u6307\u5b9a\u4e00\u4e9b\u6807\u51c6\uff0c\u5e95\u5c42\u7684\u9a7e\u9a6d\u4e0d\u4e86\uff0c\u5e94\u7528\u5c42\u7684\u6807\u51c6\u53ef\u4ee5\u8bd5\u4e00\u8bd5\u3002<\/p>\n<p>\u53ef\u4ee5\u653e\u5728\u5fc3\u91cc\u9762\u76d8\u4e00\u76d8\uff0c\u4ee5\u540e\u8bf4\u4e0d\u5b9a\u6709\u673a\u4f1a\u7684\u3002<\/p>\n<p>\u5f53\u4e0b\u8fd8\u662f\u8981\u4e0d\u65ad\u79ef\u7d2f\u3002<\/p>\n<p>\u597d\uff0c\u672c\u6587\u5c31\u8bf4\u8fd9\u4e48\u591a\uff0c\u7b80\u5355\u4ecb\u7ecd\u4e0b\uff0c\u5927\u5bb6\u4e5f\u53ef\u4ee5\u5728\u81ea\u5df1\u56e2\u961f\u5185\u90e8\u505a\u4e2a\u5206\u4eab\u5565\u7684\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u79ef\u7d2f\u4e2a\u6700\u4f73\u5b9e\u8df5\u4e4b\u7c7b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f609.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9356\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9356<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/202004\/13-09-cover.png\" width=\"160\" height=\"96\" alt=\"avif\u56fe\u50cf\u683c\u5f0f\" class=\"alignright  size-medium\" loading=\"lazy\" \/><\/p>\n<p>AVIF\u56fe\u50cf\u683c\u5f0f\u88ab\u8a89\u4e3a\u4e0b\u4e00\u4ee3\u56fe\u7247\u538b\u7f29\u683c\u5f0f\uff0c\u7a76\u7adf\u6709\u4ec0\u4e48\u9b54\u529b\u8ba9\u5176\u5982\u6b64\u53e3\u51fa\u72c2\u8a00\u5462\uff0c\u4e0d\u59a8\u4e00\u8d77\u8fdb\u6765\u770b\u4e00\u770b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[945,1586,1588,1587,1100,771,1143,946,75,1155],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9356"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=9356"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9356\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=9356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=9356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=9356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}