{"id":4832,"date":"2019-09-30T16:23:58","date_gmt":"2019-09-30T07:23:58","guid":{"rendered":"http:\/\/www.otwo.jp\/blog\/?p=4832"},"modified":"2020-06-30T13:55:06","modified_gmt":"2020-06-30T04:55:06","slug":"canvas-drawing","status":"publish","type":"post","link":"https:\/\/www.otwo.jp\/blog\/canvas-drawing\/","title":{"rendered":"Canvas\u3092\u4f7f\u3063\u3066\u304a\u7d75\u63cf\u304d\u3068\u753b\u50cf\u306e\u4fdd\u5b58\u3092\u3057\u3066\u307f\u308b\u3010HTML5\u3011"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2019\/09\/canvas_art.png\" alt=\"\" width=\"700\" height=\"400\" class=\"alignnone size-full wp-image-4872\" srcset=\"https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2019\/09\/canvas_art.png 700w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2019\/09\/canvas_art-150x86.png 150w, https:\/\/www.otwo.jp\/blog\/wp-content\/uploads\/2019\/09\/canvas_art-300x171.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\n\u3053\u3093\u306b\u3061\u306f\u3001WEB\u306e\u4f50\u91ce\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001html5\u306eCanvas\u3092\u4f7f\u3063\u305f\u304a\u7d75\u63cf\u3068\u304d\u51fa\u6765\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u5b9f\u88c5\u6a5f\u80fd\u306f\u3001\u7dda\u306e\u592a\u3055\u30fb\u8272\u3092\u5909\u66f4\u30fb\u753b\u50cf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306a\u3069\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305c\u3072\u3053\u308c\u3092\u6539\u826f\u3057\u306a\u304c\u3089\u9762\u767d\u3044\u304a\u7d75\u63cf\u304d\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<div class=\"pageContents\">\n<p class=\"title\">\u3082\u304f\u3058<\/p>\n<dl>\n<dt><a href=\"#step1\">\u5b8c\u6210\u5f62\u306e\u30b5\u30f3\u30d7\u30eb<\/a><\/dt>\n<dt><a href=\"#step2\">\u51e6\u7406\u306e\u30dd\u30a4\u30f3\u30c8<\/a><\/dt>\n<dd><a href=\"#step2-1\">\u7dda\u306e\u5f15\u304d\u65b9<\/a><\/dd>\n<dd><a href=\"#step2-2\">\u8272\u306e\u5909\u3048\u65b9<\/a><\/dd>\n<dd><a href=\"#step2-3\">\u7dda\u306e\u592a\u3055\u306e\u5909\u3048\u65b9<\/a><\/dd>\n<dd><a href=\"#step2-4\">\u753b\u50cf\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/dd>\n<dt><a href=\"#step3\">\u6700\u5f8c\u306b<\/a><\/dt>\n<\/dl>\n<\/div>\n<h2 id=\"step1\">\u5b8c\u6210\u5f62\u306e\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p>\u307e\u305a\u306f\u4eca\u56de\u306e\u5b8c\u6210\u54c1\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"codepen\" data-height=\"500\" data-theme-id=\"0\" data-default-tab=\"result\" data-user=\"otwo\" data-slug-hash=\"WNexBQw\" style=\"height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\" data-pen-title=\"WNexBQw\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/otwo\/pen\/WNexBQw\/\"><br \/>\n  WNexBQw<\/a> by otwo (<a href=\"https:\/\/codepen.io\/otwo\">@otwo<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/static.codepen.io\/assets\/embed\/ei.js\"><\/script><br \/>\n\u8981\u70b9\u306e\u3044\u304f\u3064\u304b\u3092\u5f8c\u8ff0\u3057\u307e\u3059\u304c\u3001\u30b3\u30d4\u30da\u7528\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u3002<\/p>\n<pre class=\"brush: python\r; notranslate\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;title&gt;\u304a\u7d75\u63cf\u304d DEMO\/title&gt;\r\n&lt;script src=\"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.1\/jquery.min.js\"&gt;\/script&gt;\r\n&lt;style&gt;\r\n  .option{\r\n    width: 250px;\r\n  }\r\n  .color > a{\r\n    display: inline-block;\r\n    width: 20px;\r\n    height: 20px;\r\n  }\r\n  .black{\r\n    background-color: #000000;\r\n  }\r\n  .red{\r\n    background-color: #ff0000;\r\n  }\r\n  .blue{\r\n    background-color: #0000ff;\r\n  }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n  <canvas id=\"canvas\" width=\"500\" height=\"300\" style=\"border: solid 1px #000;box-sizing: border-box;\"><\/canvas>\r\n  <div class=\"option\">\r\n    <div class=\"color\">\r\n      \u8272\uff1a\r\n      <a href=\"\" class=\"black\" data-color=\"0, 0, 0, 1\"><\/a>\r\n      <a href=\"\" class=\"red\" data-color=\"255, 0, 0, 1\"><\/a>\r\n      <a href=\"\" class=\"blue\" data-color=\"0, 0, 255, 1\"><\/a>\r\n    <\/div>\r\n    <div class=\"bold\">\r\n      \u592a\u3055\uff1a\r\n      <a href=\"\" class=\"small\" data-bold=\"1\">\u5c0f<\/a>\r\n      <a href=\"\" class=\"middle\" data-bold=\"5\">\u4e2d<\/a>\r\n      <a href=\"\" class=\"large\" data-bold=\"10\">\u5927<\/a>\r\n    <\/div>\r\n  <\/div>\r\n  <input type=\"button\" value=\"clear\" id=\"clear\">\r\n  <a id=\"download\" href=\"#\" download=\"canvas.jpg\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\r\n  <div id=\"result\"><img decoding=\"async\" src=\"\"><\/div>\r\n\r\n  &lt;script&gt;\r\n    \/\/ canvas\r\n    var cnvs = document.getElementById('canvas');\r\n    var ctx = cnvs.getContext('2d');\r\n\r\n    \/\/ \u5909\u6570\u5ba3\u8a00\r\n    const cnvWidth = 500;\r\n    const cnvHeight = 500;\r\n    var cnvColor = \"255, 0, 0, 1\";  \/\/ \u7dda\u306e\u8272\r\n    var cnvBold = 5;  \/\/ \u7dda\u306e\u592a\u3055\r\n    var clickFlg = 0;  \/\/ \u30af\u30ea\u30c3\u30af\u4e2d\u306e\u5224\u5b9a 1:\u30af\u30ea\u30c3\u30af\u958b\u59cb 2:\u30af\u30ea\u30c3\u30af\u4e2d\r\n    var bgColor = \"rgb(255,255,255)\";\r\n\r\n    \/\/ canvas\u306e\u80cc\u666f\u8272\u3092\u8a2d\u5b9a(\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306bjpeg\u4fdd\u5b58\u3059\u308b\u3068\u80cc\u666f\u304c\u9ed2\u306b\u306a\u308b)\r\n    setBgColor();\r\n\r\n    \/\/ canvas\u4e0a\u3067\u306e\u30a4\u30d9\u30f3\u30c8\r\n    $(\"#canvas\").mousedown(function(){\r\n      clickFlg = 1; \/\/ \u30de\u30a6\u30b9\u62bc\u4e0b\u958b\u59cb\r\n    }).mouseup(function(){\r\n      clickFlg = 0; \/\/ \u30de\u30a6\u30b9\u62bc\u4e0b\u7d42\u4e86\r\n    }).mousemove(function(e){\r\n      \/\/ \u30de\u30a6\u30b9\u79fb\u52d5\u51e6\u7406\r\n      if(!clickFlg) return false;\r\n      draw(e.offsetX, e.offsetY);\r\n    });\r\n\r\n    \/\/ \u63cf\u753b\u51e6\u7406\r\n    function draw(x, y) {\r\n      ctx.lineWidth = cnvBold;\r\n      ctx.strokeStyle = 'rgba('+cnvColor+')';\r\n      \/\/ \u521d\u56de\u51e6\u7406\u306e\u5224\u5b9a\r\n      if (clickFlg == \"1\") {\r\n        clickFlg = \"2\";\r\n        ctx.beginPath();\r\n        ctx.lineCap = \"round\";  \/\/\u3000\u7dda\u3092\u89d2\u4e38\u306b\u3059\u308b\r\n        ctx.moveTo(x, y);\r\n      } else {\r\n        ctx.lineTo(x, y);\r\n      }\r\n      ctx.stroke();\r\n    };\r\n\r\n    \/\/ \u8272\u306e\u5909\u66f4\r\n    $(\".color a\").click(function(){\r\n      cnvColor = $(this).data(\"color\");\r\n      return false;\r\n    });\r\n\r\n    \/\/ \u7dda\u306e\u592a\u3055\u5909\u66f4\r\n    $(\".bold a\").click(function(){\r\n      cnvBold = $(this).data(\"bold\");\r\n      return false;\r\n    });\r\n\r\n    \/\/ \u63cf\u753b\u30af\u30ea\u30a2\r\n    $(\"#clear\").click(function(){\r\n      ctx.clearRect(0,0,cnvWidth,cnvHeight);\r\n      setBgColor();\r\n    });\r\n\r\n    \/\/ canvas\u3092\u753b\u50cf\u3067\u4fdd\u5b58\r\n    $(\"#download\").click(function(){\r\n      canvas = document.getElementById('canvas');\r\n      var base64 = canvas.toDataURL(\"image\/jpeg\");\r\n      document.getElementById(\"download\").href = base64;\r\n    });\r\n\r\n    function setBgColor(){\r\n      \/\/ canvas\u306e\u80cc\u666f\u8272\u3092\u8a2d\u5b9a(\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306bjpeg\u4fdd\u5b58\u3059\u308b\u3068\u80cc\u666f\u304c\u9ed2\u306b\u306a\u308b)\r\n      ctx.fillStyle = bgColor;\r\n      ctx.fillRect(0,0,cnvWidth,cnvHeight);\r\n    }\r\n  &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>\u4eca\u56de\u306e\u30b3\u30fc\u30c9\u306f\u30d6\u30ed\u30b0\u7528\u306b\u77ed\u304f\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u64cd\u4f5c\u306b\u5bfe\u3059\u308b\u5236\u5fa1\u3092\u7d30\u304b\u304f\u4f5c\u308a\u8fbc\u3093\u3067\u3044\u307e\u305b\u3093\u3002<br \/>\n\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u306f\u51fa\u6765\u307e\u3059\u304c\u3001\u64cd\u4f5c\u6b21\u7b2c\u3067\u306f\u601d\u3063\u305f\u6319\u52d5\u306b\u306a\u3089\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u3053\u306f\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 id=\"step2\">\u51e6\u7406\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u5185\u3067Canvas\u64cd\u4f5c\u3092\u884c\u3063\u3066\u3044\u308b\u7b87\u6240\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3 id=\"step2-1\">\u7dda\u306e\u5f15\u304d\u65b9<\/h3>\n<p>\u7dda\u3092\u5f15\u304f\u306e\u306f2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h4>moveTo\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>moveTo(x\u5ea7\u6a19,y\u5ea7\u6a19)\u306f\u76f4\u7dda\u3092\u5f15\u304f\u70ba\u306e\u59cb\u70b9\u3092\u5ba3\u8a00\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306b\u306fcanvas\u7bc4\u56f2\u306e\u5de6\u4e0a\u304b\u3089\u306ex,y\u5ea7\u6a19\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4>lineTo\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>lineTo(x\u5ea7\u6a19,y\u5ea7\u6a19)\u306f\u76f4\u7dda\u306e\u7d42\u70b9\u3092\u5ba3\u8a00\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306b\u306fcanvas\u7bc4\u56f2\u306e\u5de6\u4e0a\u304b\u3089\u306ex,y\u5ea7\u6a19\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u304a\u7d75\u63cf\u304d\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u9023\u7d9a\u3057\u305f\u76f4\u7dda\u3092\u7e4b\u3052\u308b\u4e8b\u3067\u66f2\u7dda\u3092\u63cf\u3044\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"step2-2\">\u8272\u306e\u5909\u3048\u65b9<\/h3>\n<h4>strokeStyle\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>strokeStyle\u306f\u7dda\u306e\u8272\u3092\u5909\u66f4\u3059\u308b\u70ba\u306b\u4f7f\u7528\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<br \/>\n\u5f15\u6570\u306brgba\u306e\u60c5\u5831\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u8272\u3092\u5909\u66f4\u3059\u308b\u30dc\u30bf\u30f3\u306bdata-role\u3067rgba\u3092\u4ed5\u8fbc\u3093\u3067\u304a\u3044\u3066\u3001\u30af\u30ea\u30c3\u30af\u6642\u306b\u30bd\u30fc\u30b9\u5185\u306e\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\u7528\u306e\u5909\u6570\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"step2-3\">\u7dda\u306e\u592a\u3055\u306e\u5909\u3048\u65b9<\/h3>\n<h4>lineWidth\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>lineWidth\u306f\u7dda\u306e\u592a\u3055\u3092\u6307\u5b9a\u3059\u308b\u70ba\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<br \/>\n\u5f15\u6570\u306b\u306f0\u4ee5\u4e0a\u306e\u6574\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3 id=\"step2-4\">\u753b\u50cf\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<h4>toDataURL\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>Canvas\u306b\u63cf\u753b\u3055\u308c\u3066\u3044\u308b\u5185\u5bb9\u3092\u753b\u50cf\u306b\u5909\u63db\u3059\u308b\u306e\u306btoDataURL\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306fJPG\u30fbPNG\u306e\u3069\u3061\u3089\u3067\u4fdd\u5b58\u3059\u308b\u304b\u3067\u5185\u5bb9\u3092\u5909\u3048\u307e\u3059\u3002<br \/>\nJPG\u306e\u5834\u5408\uff1aimage\/jpeg<br \/>\nPNG\u306e\u5834\u5408\uff1aimage\/png<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u623b\u308a\u5024\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u3067Canvas\u306e\u72b6\u614b\u3092\u753b\u50cf\u3067\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u753b\u50cf\u4fdd\u5b58\u306e\u4ed5\u69d8\u3067Canvas\u306e\u80cc\u666f\u8272\u3092\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u753b\u50cf\u4fdd\u5b58\u3092\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u69d8\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nPNG\uff1a\u80cc\u666f\u304c\u900f\u660e<br \/>\nJPG\uff1a\u80cc\u666f\u304c\u9ed2<\/p>\n<p>\u3053\u308c\u3089\u306e\u4ed5\u69d8\u306b\u4e0d\u90fd\u5408\u306a\u3051\u308c\u3070\u554f\u984c\u306a\u3044\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u898b\u6804\u3048\u3092\u6c17\u306b\u3057\u3066Canvas\u306e\u80cc\u666f\u8272\u306bfillStyle\u30e1\u30bd\u30c3\u30c9\u3067\u767d\u8272\u306b\u5857\u308a\u3064\u3076\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6c17\u306b\u306a\u308b\u5834\u5408\u306f\u304a\u597d\u307f\u306e\u80cc\u666f\u8272\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>\u4eca\u56de\u306e\u5236\u4f5c\u7269\u306fPC\u7528\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30b9\u30de\u30db\u7528\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u66f8\u304d\u63db\u3048\u308b\u3068\u30a2\u30d7\u30ea\u306b\u3082\u51fa\u6765\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u306f\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30a2\u30d7\u30ea\u3092\u4f5c\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u3082\u591a\u304f\u3042\u308b\u306e\u3067\u662f\u975e\u6539\u826f\u3057\u3066\u9762\u767d\u3044\u3082\u306e\u3092\u4f5c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001WEB\u306e\u4f50\u91ce\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001html5\u306eCanvas\u3092\u4f7f\u3063\u305f\u304a\u7d75\u63cf\u3068\u304d\u51fa\u6765\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u5b9f\u88c5\u6a5f\u80fd\u306f\u3001\u7dda\u306e\u592a\u3055\u30fb\u8272\u3092\u5909\u66f4\u30fb\u753b\u50cf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306a\u3069\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305c\u3072\u3053\u308c\u3092\u6539\u826f\u3057 [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":4871,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[82,94,130],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/4832"}],"collection":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/comments?post=4832"}],"version-history":[{"count":15,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/4832\/revisions"}],"predecessor-version":[{"id":5729,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/posts\/4832\/revisions\/5729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/media\/4871"}],"wp:attachment":[{"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/media?parent=4832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/categories?post=4832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otwo.jp\/blog\/wp-json\/wp\/v2\/tags?post=4832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}