{"id":97,"date":"2026-09-02T18:40:36","date_gmt":"2026-09-02T09:40:36","guid":{"rendered":"https:\/\/motoki-design.co.jp\/tools\/favicon-generator\/"},"modified":"2026-09-02T18:50:17","modified_gmt":"2026-09-02T09:50:17","slug":"favicon-generator","status":"publish","type":"page","link":"https:\/\/motoki-design.co.jp\/tools\/favicon-generator\/","title":{"rendered":"\u30d5\u30a1\u30d3\u30b3\u30f3\u4e00\u5f0f\u751f\u6210\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<div id=\"wt-favicon\" class=\"wt-tool\">\n\t<p class=\"wt-lead\">\u753b\u50cf\u30921\u679a\u9078\u3076\u3060\u3051\u3067\u3001<strong>\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d6\u30fb\u30b9\u30de\u30db\u306e\u30db\u30fc\u30e0\u753b\u9762\u30fb\u691c\u7d22\u7d50\u679c\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30d3\u30b3\u30f3\u4e00\u5f0f<\/strong>\u3092\u751f\u6210\u3057\u307e\u3059\u3002<code>favicon.ico<\/code>\u30fb\u5404\u30b5\u30a4\u30ba\u306ePNG\u30fb<code>site.webmanifest<\/code>\u30fbHTML\u306e\u8a18\u8ff0\u307e\u3067\u3001\u307e\u3068\u3081\u3066\u7528\u610f\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\t<div class=\"wt-policy\" style=\"border-color:#cfe3cf;background:#f3faf3;margin-top:0\">\n\t\t<p class=\"wt-policy-title\">\ud83d\udd12 \u753b\u50cf\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093<\/p>\n\t\t<ul>\n\t\t\t<li>\u5909\u63db\u306f<strong>\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3060\u3051<\/strong>\u3067\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u753b\u50cf\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n\t\t\t<li>\u672a\u516c\u958b\u306e\u30ed\u30b4\u3084\u5236\u4f5c\u4e2d\u306e\u30c7\u30b6\u30a4\u30f3\u3067\u3082\u5b89\u5fc3\u3057\u3066\u304a\u4f7f\u3044\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/li>\n\t\t<\/ul>\n\t<\/div>\n\n\t<form class=\"wt-form\" style=\"margin-top:1.2em\" onsubmit=\"return false\">\n\t\t<div class=\"wt-drop\" id=\"wt-fv-drop\">\n\t\t\t<strong>\u753b\u50cf\u3092\u3053\u3053\u306b\u30c9\u30ed\u30c3\u30d7\u3001\u307e\u305f\u306f\u30af\u30ea\u30c3\u30af\u3057\u3066\u9078\u629e<\/strong>\n\t\t\t<span>PNG\u30fbJPEG\u30fbSVG\u30fbWebP \u306b\u5bfe\u5fdc\uff0f\u6b63\u65b9\u5f62\u30fb512px\u4ee5\u4e0a\u3092\u63a8\u5968<\/span>\n\t\t\t<input type=\"file\" id=\"wt-fv-file\" accept=\"image\/*\" hidden>\n\t\t<\/div>\n\t\t<div class=\"wt-fields\">\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-fv-bg\">\u80cc\u666f\u8272\uff08\u900f\u904e\u90e8\u5206\u3092\u5857\u308a\u3064\u3076\u3059\u5834\u5408\uff09<\/label>\n\t\t\t\t<input type=\"color\" id=\"wt-fv-bg\" value=\"#ffffff\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label><input type=\"checkbox\" id=\"wt-fv-transparent\" checked> \u900f\u904e\u306e\u307e\u307e\u51fa\u529b\u3059\u308b<\/label>\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-fv-pad\">\u4f59\u767d\uff08\uff05\uff09<span id=\"wt-fv-padv\">0<\/span><\/label>\n\t\t\t\t<input type=\"range\" id=\"wt-fv-pad\" min=\"0\" max=\"25\" value=\"0\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-fv-name\">\u30b5\u30a4\u30c8\u540d\uff08manifest\u7528\uff09<\/label>\n\t\t\t\t<input type=\"text\" id=\"wt-fv-name\" placeholder=\"\u30b5\u30a4\u30c8\u540d\">\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/form>\n\n\t<div class=\"wt-status\" hidden><\/div>\n\t<div class=\"wt-result\" hidden><\/div>\n\n\t<div class=\"wt-disclaimer\">\n\t\t<strong>\u8a2d\u7f6e\u306e\u3057\u304b\u305f<\/strong><br>\n\t\t\u751f\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u539f\u5247<strong>\u30b5\u30a4\u30c8\u306e\u30eb\u30fc\u30c8\uff08<code>\/favicon.ico<\/code> \u306a\u3069\uff09<\/strong>\u306b\u7f6e\u304d\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u306fHTML\u306b\u8a18\u8ff0\u304c\u306a\u304f\u3066\u3082\u30eb\u30fc\u30c8\u306e <code>favicon.ico<\/code> \u3092\u63a2\u3057\u306b\u6765\u308b\u305f\u3081\u3001\u3053\u308c\u3060\u3051\u306f\u5fc5\u305a\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u6b8b\u308a\u306ePNG\u3068manifest\u306f\u540c\u3058\u5834\u6240\u306b\u7f6e\u304d\u3001\u751f\u6210\u3055\u308c\u305fHTML\u3092 <code>&lt;head&gt;<\/code> \u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002WordPress\u306e\u5834\u5408\u306f\u300c\u5916\u89b3 &gt; \u30ab\u30b9\u30bf\u30de\u30a4\u30ba &gt; \u30b5\u30a4\u30c8\u57fa\u672c\u60c5\u5831 &gt; \u30b5\u30a4\u30c8\u30a2\u30a4\u30b3\u30f3\u300d\u306b512px\u306ePNG\u3092\u767b\u9332\u3059\u308b\u3060\u3051\u3067\u3082\u5927\u90e8\u5206\u304c\u307e\u304b\u306a\u3048\u307e\u3059\u3002\n\t<\/div>\n\n\t<div class=\"wt-faq\">\n\t\t<details>\n\t\t\t<summary>\u3069\u306e\u30b5\u30a4\u30ba\u304c\u5fc5\u8981\u3067\u3059\u304b\uff1f<\/summary>\n\t\t\t<p>\u6700\u4f4e\u9650\u306f <strong>favicon.ico\uff0816\u30fb32px\uff09\u3068180px\u306eapple-touch-icon\u3001512px\u306ePNG<\/strong>\u3067\u3059\u300216px\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d6\u300132px\u306f\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3084\u9ad8\u89e3\u50cf\u5ea6\u30bf\u30d6\u3001180px\u306fiPhone\u306e\u30db\u30fc\u30e0\u753b\u9762\u3001192\/512px\u306fAndroid\u3068PWA\u3001\u305d\u3057\u3066Google\u306e\u691c\u7d22\u7d50\u679c\u306b\u306f48px\u4ee5\u4e0a\u306e\u6b63\u65b9\u5f62\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3053\u308c\u3089\u3092\u307e\u3068\u3081\u3066\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>\u5143\u753b\u50cf\u306f\u3069\u3046\u7528\u610f\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/summary>\n\t\t\t<p><strong>\u6b63\u65b9\u5f62\u3067512px\u4ee5\u4e0a\u3001\u4f59\u767d\u306f\u5c11\u306a\u3081<\/strong>\u304c\u57fa\u672c\u3067\u3059\u300216px\u307e\u3067\u7e2e\u3080\u306e\u3067\u3001\u7d30\u3044\u7dda\u3084\u5c0f\u3055\u306a\u6587\u5b57\u306f\u6f70\u308c\u307e\u3059\u3002\u30ed\u30b4\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3068\u8aad\u3081\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3001<strong>\u30b7\u30f3\u30dc\u30eb\u90e8\u5206\u3060\u3051\u3092\u5207\u308a\u51fa\u3059<\/strong>\u304b\u3001\u982d\u6587\u5b571\u301c2\u6587\u5b57\u306b\u3059\u308b\u306e\u304c\u5b9a\u77f3\u3067\u3059\u3002\u751f\u6210\u5f8c\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u306716px\u306e\u898b\u3048\u65b9\u3092\u5fc5\u305a\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>\u30d5\u30a1\u30d3\u30b3\u30f3\u3092\u5909\u3048\u305f\u306e\u306b\u53cd\u6620\u3055\u308c\u307e\u305b\u3093<\/summary>\n\t\t\t<p>\u30d6\u30e9\u30a6\u30b6\u306e\u30d5\u30a1\u30d3\u30b3\u30f3\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u7279\u306b\u5f37\u304f\u6b8b\u308a\u307e\u3059\u3002\u30b9\u30fc\u30d1\u30fc\u30ea\u30ed\u30fc\u30c9\uff08Ctrl+F5\uff09\u3067\u3082\u6d88\u3048\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3067\u3082\u53e4\u3044\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u3048\u308b\uff08\u4f8b\uff1a<code>favicon-2.png<\/code>\uff09\u304b\u30af\u30a8\u30ea\u3092\u4ed8\u3051\u308b\uff08<code>favicon.ico?v=2<\/code>\uff09\u3068\u78ba\u5b9f\u3067\u3059\u3002<\/p>\n\t\t<\/details>\n\t<\/div>\n<\/div>\n\n<div class=\"wt-tool\"><div class=\"wt-policy\"><p class=\"wt-policy-title\">\ud83d\udd12 \u8abf\u3079\u305f\u5185\u5bb9\u306f\u8a18\u9332\u30fb\u516c\u958b\u3057\u307e\u305b\u3093<\/p><ul><li><strong>\u691c\u7d22\u3057\u305f\u5185\u5bb9\u3092\u4fdd\u5b58\u30fb\u4e00\u89a7\u5316\u30fb\u516c\u958b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8abf\u67fb\u7d50\u679c\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5316\u3057\u3066\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3001\u4ed6\u306e\u5229\u7528\u8005\u306b\u898b\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u4e00\u5207\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li><strong>\u691c\u7d22\u5c65\u6b74\u3092\u6b8b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8ab0\u304c\u4f55\u3092\u8abf\u3079\u305f\u304b\u3092\u7d10\u3065\u3051\u3066\u84c4\u7a4d\u3059\u308b\u3053\u3068\u306f\u3057\u307e\u305b\u3093\u3002\u4f1a\u54e1\u767b\u9332\u30fb\u30ed\u30b0\u30a4\u30f3\u3082\u4e0d\u8981\u3067\u3059\u3002<\/li><li><strong>\u7b2c\u4e09\u8005\u306b\u63d0\u4f9b\u30fb\u8ca9\u58f2\u3057\u307e\u305b\u3093\u3002<\/strong>\u55b6\u696d\u30ea\u30b9\u30c8\u3084\u5e83\u544a\u76ee\u7684\u3067\u306e\u5229\u7528\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li>\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u3092\u6291\u3048\u308b\u305f\u3081\u3001<strong>\u5224\u5b9a\u7d50\u679c\u306e\u307f\u6700\u59271\u6642\u9593\u306e\u4e00\u6642\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong>\u306b\u4fdd\u6301\u3057\u3001\u6642\u9593\u306e\u7d4c\u904e\u3067\u81ea\u52d5\u7684\u306b\u6d88\u3048\u307e\u3059\u3002\u9023\u7d9a\u30a2\u30af\u30bb\u30b9\u306e\u5236\u9650\u7528\u306bIP\u30a2\u30c9\u30ec\u30b9\u3092<strong>\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u5024<\/strong>\u3092\u6700\u592710\u5206\u9593\u3060\u3051\u4fdd\u6301\u3057\u307e\u3059\uff08\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f\u4fdd\u5b58\u3057\u307e\u305b\u3093\uff09\u3002<\/li><li>\u8abf\u3079\u305f\u5bfe\u8c61\u306f\u5171\u6709\u7528\u306bURL\u306e<code>#<\/code>\u4ee5\u964d\u306b\u4ed8\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u90e8\u5206\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u306b\u3082\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002<\/li><\/ul><\/div><\/div>\n\n<script>\n(function () {\n\tvar root = document.getElementById('wt-favicon');\n\tif (!root || !window.WT) return;\n\tvar W = WT;\n\tvar resultBox = root.querySelector('.wt-result');\n\tvar statusBox = root.querySelector('.wt-status');\n\tvar drop = document.getElementById('wt-fv-drop');\n\tvar input = document.getElementById('wt-fv-file');\n\tvar source = null;\n\n\tvar SIZES = [\n\t\t{ size: 16, name: 'favicon-16x16.png', note: '\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d6' },\n\t\t{ size: 32, name: 'favicon-32x32.png', note: '\u30d6\u30c3\u30af\u30de\u30fc\u30af\u30fb\u9ad8\u89e3\u50cf\u5ea6\u30bf\u30d6' },\n\t\t{ size: 48, name: 'favicon-48x48.png', note: 'Google\u691c\u7d22\u7d50\u679c' },\n\t\t{ size: 180, name: 'apple-touch-icon.png', note: 'iPhone\u306e\u30db\u30fc\u30e0\u753b\u9762' },\n\t\t{ size: 192, name: 'android-chrome-192x192.png', note: 'Android' },\n\t\t{ size: 512, name: 'android-chrome-512x512.png', note: 'PWA\u30fb\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5' }\n\t];\n\n\tfunction setStatus(msg, isError) {\n\t\tif (!msg) { statusBox.hidden = true; return; }\n\t\tstatusBox.hidden = false;\n\t\tstatusBox.className = 'wt-status' + (isError ? ' is-error' : '');\n\t\tstatusBox.textContent = msg;\n\t}\n\n\tfunction drawTo(size) {\n\t\tvar canvas = document.createElement('canvas');\n\t\tcanvas.width = canvas.height = size;\n\t\tvar ctx = canvas.getContext('2d');\n\t\tvar transparent = document.getElementById('wt-fv-transparent').checked;\n\t\tif (!transparent) {\n\t\t\tctx.fillStyle = document.getElementById('wt-fv-bg').value;\n\t\t\tctx.fillRect(0, 0, size, size);\n\t\t}\n\t\tvar pad = size * (parseInt(document.getElementById('wt-fv-pad').value, 10) \/ 100);\n\t\tvar inner = size - pad * 2;\n\t\t\/\/ \u5143\u753b\u50cf\u306e\u7e26\u6a2a\u6bd4\u3092\u4fdd\u3063\u305f\u307e\u307e\u4e2d\u592e\u306b\u53ce\u3081\u308b\n\t\tvar scale = Math.min(inner \/ source.width, inner \/ source.height);\n\t\tvar w = source.width * scale, h = source.height * scale;\n\t\tctx.imageSmoothingQuality = 'high';\n\t\tctx.drawImage(source, (size - w) \/ 2, (size - h) \/ 2, w, h);\n\t\treturn canvas;\n\t}\n\n\t\/\/ 32px\u306ePNG\u30921\u679a\u3060\u3051\u53ce\u3081\u305f\u6700\u5c0f\u69cb\u6210\u306eICO\u3092\u7d44\u307f\u7acb\u3066\u308b\n\tfunction buildIco(pngBlob) {\n\t\treturn pngBlob.arrayBuffer().then(function (png) {\n\t\t\tvar header = new ArrayBuffer(22);\n\t\t\tvar v = new DataView(header);\n\t\t\tv.setUint16(0, 0, true);        \/\/ reserved\n\t\t\tv.setUint16(2, 1, true);        \/\/ type: icon\n\t\t\tv.setUint16(4, 1, true);        \/\/ \u753b\u50cf1\u679a\n\t\t\tv.setUint8(6, 32);              \/\/ width\n\t\t\tv.setUint8(7, 32);              \/\/ height\n\t\t\tv.setUint8(8, 0);               \/\/ \u30d1\u30ec\u30c3\u30c8\u6570\n\t\t\tv.setUint8(9, 0);\n\t\t\tv.setUint16(10, 1, true);       \/\/ color planes\n\t\t\tv.setUint16(12, 32, true);      \/\/ bit depth\n\t\t\tv.setUint32(14, png.byteLength, true);\n\t\t\tv.setUint32(18, 22, true);      \/\/ \u30c7\u30fc\u30bf\u958b\u59cb\u4f4d\u7f6e\n\t\t\treturn new Blob([header, png], { type: 'image\/x-icon' });\n\t\t});\n\t}\n\n\tfunction generate() {\n\t\tif (!source) return;\n\t\tsetStatus('\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u2026');\n\n\t\tvar jobs = SIZES.map(function (s) {\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\tdrawTo(s.size).toBlob(function (blob) {\n\t\t\t\t\tresolve({ spec: s, blob: blob, url: URL.createObjectURL(blob) });\n\t\t\t\t}, 'image\/png');\n\t\t\t});\n\t\t});\n\n\t\tPromise.all(jobs).then(function (files) {\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\tdrawTo(32).toBlob(function (blob) {\n\t\t\t\t\tbuildIco(blob).then(function (ico) {\n\t\t\t\t\t\tresolve({ files: files, ico: ico });\n\t\t\t\t\t});\n\t\t\t\t}, 'image\/png');\n\t\t\t});\n\t\t}).then(function (result) {\n\t\t\tsetStatus('');\n\t\t\trender(result.files, result.ico);\n\t\t});\n\t}\n\n\tfunction render(files, ico) {\n\t\tvar name = document.getElementById('wt-fv-name').value.trim() || '\u30b5\u30a4\u30c8\u540d';\n\t\tvar html = W.head('ok', '\u751f\u6210\u7d50\u679c', W.esc(files.length + 1 + ' \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3057\u305f'),\n\t\t\t['\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u30661\u3064\u305a\u3064\u4fdd\u5b58\u3057\u3001\u30b5\u30a4\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044\u3002']);\n\n\t\t\/\/ \u30d7\u30ec\u30d3\u30e5\u30fc\uff08\u5c0f\u3055\u3044\u30b5\u30a4\u30ba\u306e\u898b\u3048\u65b9\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u5b9f\u5bf8\u3067\u4e26\u3079\u308b\uff09\n\t\thtml += '<h3 class=\"wt-h\">\u30d7\u30ec\u30d3\u30e5\u30fc\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>';\n\t\thtml += '<div class=\"wt-thumbs\">';\n\t\thtml += '<div class=\"wt-thumb\">' + W.img(files[1].url, { width: 32, height: 32, alt: '' }) +\n\t\t\t'<div>favicon.ico<\/div><button type=\"button\" class=\"wt-mini\" data-fv=\"ico\" style=\"margin-top:.4em\">\u4fdd\u5b58<\/button><\/div>';\n\t\tfiles.forEach(function (f, i) {\n\t\t\tvar display = Math.min(f.spec.size, 96);\n\t\t\thtml += '<div class=\"wt-thumb\">' +\n\t\t\t\tW.img(f.url, { width: display, height: display, alt: '' }) +\n\t\t\t\t'<div>' + f.spec.size + 'px<\/div>' +\n\t\t\t\t'<div style=\"font-size:.9em;opacity:.8\">' + W.esc(f.spec.note) + '<\/div>' +\n\t\t\t\t'<button type=\"button\" class=\"wt-mini\" data-fv=\"' + i + '\" style=\"margin-top:.4em\">\u4fdd\u5b58<\/button><\/div>';\n\t\t});\n\t\thtml += '<\/div>';\n\n\t\t\/\/ \u5b9f\u5bf8\u30d7\u30ec\u30d3\u30e5\u30fc\n\t\thtml += '<h3 class=\"wt-h\">\u5b9f\u969b\u306e\u5927\u304d\u3055<\/h3>';\n\t\thtml += '<p class=\"wt-note\" style=\"margin:0 0 .6em\">\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d6\u3067\u306f16px\u3001\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3067\u306f32px\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u7d30\u90e8\u304c\u6f70\u308c\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>';\n\t\thtml += '<div style=\"display:flex;gap:1.5em;align-items:flex-end;background:#fff;border:1px solid var(--wt-line);border-radius:10px;padding:1.2em\">';\n\t\t[0, 1, 2].forEach(function (i) {\n\t\t\thtml += '<div style=\"text-align:center\">' +\n\t\t\t\tW.img(files[i].url, { width: files[i].spec.size, height: files[i].spec.size, alt: '' }) +\n\t\t\t\t'<div style=\"font-size:.75em;color:var(--wt-muted);margin-top:.4em\">' +\n\t\t\t\tfiles[i].spec.size + 'px<\/div><\/div>';\n\t\t});\n\t\thtml += '<\/div>';\n\n\t\tvar snippet = '<link rel=\"icon\" href=\"\/favicon.ico\" sizes=\"32x32\">\\n' +\n\t\t\t'<link rel=\"icon\" type=\"image\/png\" href=\"\/favicon-32x32.png\" sizes=\"32x32\">\\n' +\n\t\t\t'<link rel=\"icon\" type=\"image\/png\" href=\"\/favicon-16x16.png\" sizes=\"16x16\">\\n' +\n\t\t\t'<link rel=\"apple-touch-icon\" href=\"\/apple-touch-icon.png\">\\n' +\n\t\t\t'<link rel=\"manifest\" href=\"\/site.webmanifest\">';\n\n\t\thtml += '<h3 class=\"wt-h\">&lt;head&gt; \u306b\u8cbc\u308a\u4ed8\u3051\u308b\u8a18\u8ff0<\/h3>';\n\t\thtml += '<div class=\"wt-toolbar\"><button type=\"button\" class=\"wt-mini\" id=\"wt-fv-copyhtml\">\u30b3\u30d4\u30fc<\/button><\/div>';\n\t\thtml += '<pre class=\"wt-code\">' + W.esc(snippet) + '<\/pre>';\n\n\t\tvar manifest = JSON.stringify({\n\t\t\tname: name,\n\t\t\tshort_name: name,\n\t\t\ticons: [\n\t\t\t\t{ src: '\/android-chrome-192x192.png', sizes: '192x192', type: 'image\/png' },\n\t\t\t\t{ src: '\/android-chrome-512x512.png', sizes: '512x512', type: 'image\/png' }\n\t\t\t],\n\t\t\ttheme_color: document.getElementById('wt-fv-bg').value,\n\t\t\tbackground_color: document.getElementById('wt-fv-bg').value,\n\t\t\tdisplay: 'standalone'\n\t\t}, null, 2);\n\n\t\thtml += '<h3 class=\"wt-h\">site.webmanifest<\/h3>';\n\t\thtml += '<div class=\"wt-toolbar\"><button type=\"button\" class=\"wt-mini\" id=\"wt-fv-copymf\">\u30b3\u30d4\u30fc<\/button>' +\n\t\t\t'<button type=\"button\" class=\"wt-mini\" id=\"wt-fv-dlmf\">\u30d5\u30a1\u30a4\u30eb\u3067\u4fdd\u5b58<\/button><\/div>';\n\t\thtml += '<pre class=\"wt-code\">' + W.esc(manifest) + '<\/pre>';\n\n\t\tresultBox.innerHTML = html;\n\t\tresultBox.hidden = false;\n\n\t\tresultBox.addEventListener('click', function (e) {\n\t\t\tvar key = e.target.getAttribute && e.target.getAttribute('data-fv');\n\t\t\tif (key === 'ico') { W.download('favicon.ico', ico); return; }\n\t\t\tif (key !== null && key !== undefined) {\n\t\t\t\tvar f = files[parseInt(key, 10)];\n\t\t\t\tif (f) W.download(f.spec.name, f.blob);\n\t\t\t}\n\t\t});\n\t\tdocument.getElementById('wt-fv-copyhtml').addEventListener('click', function () { W.copy(snippet, this); });\n\t\tdocument.getElementById('wt-fv-copymf').addEventListener('click', function () { W.copy(manifest, this); });\n\t\tdocument.getElementById('wt-fv-dlmf').addEventListener('click', function () {\n\t\t\tW.download('site.webmanifest', manifest, 'application\/manifest+json');\n\t\t});\n\t}\n\n\tfunction load(file) {\n\t\tif (!file || !\/^image\\\/\/.test(file.type)) {\n\t\t\tsetStatus('\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002', true);\n\t\t\treturn;\n\t\t}\n\t\tvar img = new Image();\n\t\timg.onload = function () {\n\t\t\tsource = img;\n\t\t\tdrop.querySelector('strong').textContent = file.name + '\uff08' + img.width + '\u00d7' + img.height + 'px\uff09';\n\t\t\tif (img.width !== img.height) {\n\t\t\t\tsetStatus('\u6b63\u65b9\u5f62\u3067\u306f\u306a\u3044\u753b\u50cf\u3067\u3059\u3002\u4e2d\u592e\u306b\u53ce\u3081\u3066\u4f59\u767d\u3092\u4ed8\u3051\u3066\u751f\u6210\u3057\u307e\u3059\u3002', false);\n\t\t\t} else {\n\t\t\t\tsetStatus('');\n\t\t\t}\n\t\t\tgenerate();\n\t\t};\n\t\timg.onerror = function () { setStatus('\u3053\u306e\u753b\u50cf\u306f\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002', true); };\n\t\timg.src = URL.createObjectURL(file);\n\t}\n\n\tdrop.addEventListener('click', function () { input.click(); });\n\tinput.addEventListener('change', function () { load(this.files[0]); });\n\t['dragenter', 'dragover'].forEach(function (ev) {\n\t\tdrop.addEventListener(ev, function (e) { e.preventDefault(); drop.classList.add('is-over'); });\n\t});\n\t['dragleave', 'drop'].forEach(function (ev) {\n\t\tdrop.addEventListener(ev, function (e) { e.preventDefault(); drop.classList.remove('is-over'); });\n\t});\n\tdrop.addEventListener('drop', function (e) { load(e.dataTransfer.files[0]); });\n\n\tdocument.getElementById('wt-fv-pad').addEventListener('input', function () {\n\t\tdocument.getElementById('wt-fv-padv').textContent = this.value;\n\t\tif (source) generate();\n\t});\n\t['wt-fv-bg', 'wt-fv-transparent', 'wt-fv-name'].forEach(function (id) {\n\t\tdocument.getElementById(id).addEventListener('change', function () { if (source) generate(); });\n\t});\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u753b\u50cf\u30921\u679a\u9078\u3076\u3060\u3051\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d6\u30fb\u30b9\u30de\u30db\u306e\u30db\u30fc\u30e0\u753b\u9762\u30fb\u691c\u7d22\u7d50\u679c\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30d3\u30b3\u30f3\u4e00\u5f0f\u3092\u751f\u6210\u3057\u307e\u3059\u3002favicon.ico\u30fb\u5404\u30b5\u30a4\u30ba\u306ePNG\u30fbsite.webmanifest\u30fbHTML\u306e\u8a18\u8ff0\u307e\u3067\u3001\u307e\u3068\u3081\u3066\u7528\u610f\u3067\u304d\u307e\u3059\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"swell_btn_cv_data":"","ssp_meta_description":"\u753b\u50cf\u30921\u679a\u9078\u3076\u3060\u3051\u3067\u3001favicon.ico\u30fb16\/32\/48\/180\/192\/512px\u306ePNG\u30fbsite.webmanifest\u30fbHTML\u306e\u8a18\u8ff0\u307e\u3067\u307e\u3068\u3081\u3066\u751f\u6210\u3057\u307e\u3059\u3002\u753b\u50cf\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3055\u308c\u305a\u30d6\u30e9\u30a6\u30b6\u5185\u3067\u51e6\u7406\u3002\u4f1a\u54e1\u767b\u9332\u4e0d\u8981\u3002","ssp_meta_title":"\u30d5\u30a1\u30d3\u30b3\u30f3\u751f\u6210\uff5cico\u30fbPNG\u4e00\u5f0f\u3092\u7121\u6599\u3067\u4f5c\u6210","ssp_meta_robots":"","ssp_meta_canonical":"","ssp_meta_image":"","ssp_meta_keyword":"","footnotes":""},"class_list":["post-97","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/97\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/97\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/media?parent=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}