{"id":2360,"date":"2021-03-10T12:51:51","date_gmt":"2021-03-10T03:51:51","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=2360"},"modified":"2021-03-10T12:51:56","modified_gmt":"2021-03-10T03:51:56","slug":"webp%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92jpg-png%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=2360","title":{"rendered":"WebP\u30d5\u30a1\u30a4\u30eb\u3092jpg\/png\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3059\u308b\u306b\u306f"},"content":{"rendered":"<p>webp\u30d5\u30a1\u30a4\u30eb\u306f\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u6280\u8853\u306e\u4e00\u3064\u3067\u3001Google\u304c\u8fd1\u5e74\u958b\u767a\u3057\u305f\u30b3\u30f3\u30d1\u30af\u30c8\u3067\u5bb9\u91cf\u3092\u6291\u3048\u305f\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306b\u512a\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3042\u308b\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30b5\u30a4\u30c8\u7ba1\u7406\u8005\u304b\u3089\u3059\u308c\u3070\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4e00\u822c\u7684\u306b\u306f\u307e\u3060\u307e\u3060\u5bfe\u5fdc\u304c\u5b8c\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u3042\u308b\u30b5\u30a4\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u30b5\u30a4\u30c8\u306fjpg\/png\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u307f\u3067\u3042\u308a\u3001webp\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u305d\u306e\u307e\u307e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>webp\u30d5\u30a1\u30a4\u30eb\u3092jpg\/png\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#ffmpeg\"><span class=\"toc_number toc_depth_1\">1<\/span> ffmpeg\u3067\u5909\u63db<\/a><\/li><li><a href=\"#dwebp\"><span class=\"toc_number toc_depth_1\">2<\/span> dwebp\u3067\u5909\u63db<\/a><\/li><li><a href=\"#webpjpg\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30d5\u30a9\u30eb\u30c0\u306e\u5168\u3066\u306ewebp\u30d5\u30a1\u30a4\u30eb\u3092jpg\u306b\u5909\u63db\u3059\u308b<\/a><\/li><li><a href=\"#webpjpg-2\"><span class=\"toc_number toc_depth_1\">4<\/span> \u30d5\u30a9\u30eb\u30c0\u306bwebp\u30d5\u30a1\u30a4\u30eb\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3089\u5373\u6642jpg\u306b\u5909\u63db\u3059\u308b<\/a><\/li><\/ul><\/div>\n<h2><span id=\"ffmpeg\">ffmpeg\u3067\u5909\u63db<\/span><\/h2>\n<p>ffmpeg\u306f\u3060\u3044\u305f\u3044\u3069\u3093\u306a\u4eba\u3067\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306bwebp\u30d5\u30a1\u30a4\u30eb\u3092jpg\u30d5\u30a1\u30a4\u30eb\u3078\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<pre><code>ffmpeg -i file.webp out.jpg\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u307e\u3060\u306e\u5834\u5408\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046<\/p>\n<pre><code>sudo apt update ; sudo apt install ffmpeg -y\n<\/code><\/pre>\n<p>WSL\u74b0\u5883\u3084Linux\u74b0\u5883\u304c\u306a\u304fWindows\u4e0a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u5834\u5408\u306fchoco\u3092\u4f7f\u3046\u3068\u3044\u3044\u3067\u3059\u306d<br \/>\nchocolatey\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u4ed6\u306e\u8a18\u4e8b\u306b\u3066\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\u5f53\u30d6\u30ed\u30b0\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>choco install ffmpeg\n<\/code><\/pre>\n<h2><span id=\"dwebp\">dwebp\u3067\u5909\u63db<\/span><\/h2>\n<p>webp\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5165\u3063\u3066\u3044\u308bdwebp\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066webp\u5909\u63db\u3092\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>webp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code>sudo apt update ; sudo apt install webp -y\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u3066\u5909\u63db\u3092\u3057\u307e\u3057\u3087\u3046<\/p>\n<pre><code>dwebp file.webp -o abc.png\n<\/code><\/pre>\n<p>\u4f59\u8ac7\u3067\u3059\u304c&#8221;dwebp&#8221;\u306e&#8221;d&#8221;\u306f&#8221;decompress&#8221;\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001ffmpeg\u3067\u306e\u5909\u63db\u306fjpg\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u826f\u3044\u3051\u3069\u3001png\u306b\u306f\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u304c\u5927\u304d\u304f\u306a\u308b\u3068\u3044\u3046\u4e0d\u5177\u5408\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002png\u5909\u63db\u306e\u5834\u5408\u306b\u306fdwebp\u3092\u4f7f\u3046\u307b\u3046\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<blockquote><p>It is good for jpg image, but png format is very large<\/p><\/blockquote>\n<p>(\u53c2\u8003)<\/p>\n<p><a href=\"https:\/\/unix.stackexchange.com\/questions\/70622\/convert-webp-to-jpg-error-no-decode-delegate-for-this-image-format-and-missi\">imagemagick &#8211; convert webp to jpg error: &#8220;no decode delegate for this image format&#8221; and &#8220;missing an image filename&#8221; &#8211; Unix &amp; Linux Stack Exchange<\/a><\/p>\n<h2><span id=\"webpjpg\">\u30d5\u30a9\u30eb\u30c0\u306e\u5168\u3066\u306ewebp\u30d5\u30a1\u30a4\u30eb\u3092jpg\u306b\u5909\u63db\u3059\u308b<\/span><\/h2>\n<p>\u4ee5\u4e0b\u3001\u5fdc\u7528\u306e\u4f7f\u7528\u4f8b\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u306e\u5168\u3066\u306ewebp\u30d5\u30a1\u30a4\u30eb\u3092jpg\u306b\u5909\u63db\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>for i in *.webp; do ffmpeg -y -i \"$i\" \"$(basename \"${i%.*}\").jpg\"; done;\n<\/code><\/pre>\n<h2><span id=\"webpjpg-2\">\u30d5\u30a9\u30eb\u30c0\u306bwebp\u30d5\u30a1\u30a4\u30eb\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3089\u5373\u6642jpg\u306b\u5909\u63db\u3059\u308b<\/span><\/h2>\n<p>\u5fdc\u7528\u306e\u4f7f\u7528\u4f8b\u3067\u3059\u3002<\/p>\n<p>\u30b7\u30f3\u30d7\u30eb\u306a\u3001\u30d5\u30a9\u30eb\u30c0\u306bwebp\u30d5\u30a1\u30a4\u30eb\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3089\u5373\u6642jpg\u306b\u5909\u63db\u3057\u3066webp\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3001\u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u4fbf\u5229\u306a\u306e\u3067\u4f7f\u3063\u3066\u3069\u3046\u305e\u3002<\/p>\n<p>\u4ee5\u4e0b\u30b9\u30af\u30ea\u30d7\u30c8\u3092tmp.sh\u306b\u4fdd\u5b58\u3057\u307e\u3059<\/p>\n<pre><code>for i in *.webp; do ffmpeg -y -i \"$i\" \"$(basename \"${i%.*}\").jpg\"; done; rm *.webp\n<\/code><\/pre>\n<p>nodemon\u3092\u4f7f\u3044\u30d5\u30a9\u30eb\u30c0\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u305d\u308c\u3092\u691c\u77e5\u3057\u3001tmp.sh\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u9069\u6642\u5b9f\u884c\u3057\u307e\u3059<\/p>\n<pre><code>nodemon -e webp --exec .\/tmp.sh\n<\/code><\/pre>\n<p>nodemon\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u307e\u3060\u306e\u5834\u5408\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046<br \/>\nnvm\u3092\u4f7f\u7528\u3057\u3066\u306enode.js\u304a\u3088\u3073npm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u4ed6\u306e\u8a18\u4e8b\u306b\u3066\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\u5f53\u30d6\u30ed\u30b0\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>npm i -g nodemon\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>webp\u30d5\u30a1\u30a4\u30eb\u306f\u30e2\u30c0\u30f3\u306a\u30a6\u30a7\u30d6\u6280\u8853\u306e\u4e00\u3064\u3067\u3001Google\u304c\u8fd1\u5e74\u958b\u767a\u3057\u305f\u30b3\u30f3\u30d1\u30af\u30c8\u3067\u5bb9\u91cf\u3092\u6291\u3048\u305f\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-C4","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2360"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2360"}],"version-history":[{"count":1,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2360\/revisions"}],"predecessor-version":[{"id":2361,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/2360\/revisions\/2361"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}