{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffavril.hatenablog.com%2Fentry%2F20100316%2F1268725431\" title=\" canvas\u306b\u63cf\u3044\u305f\u7d75\uff08\u753b\u50cf\uff09\u3092\u30b5\u30fc\u30d0\u306b\u4fdd\u5b58 - \u8d85\u81ea\u5df1\u6e80\u8db3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","published":"2010-03-16 16:43:51","author_url":"https://blog.hatena.ne.jp/favril/","blog_url":"https://favril.hatenablog.com/","provider_url":"https://hatena.blog","title":" canvas\u306b\u63cf\u3044\u305f\u7d75\uff08\u753b\u50cf\uff09\u3092\u30b5\u30fc\u30d0\u306b\u4fdd\u5b58","provider_name":"Hatena Blog","image_url":null,"width":"100%","description":"canvas\u306b\u63cf\u304b\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001canvas.toDataURL() \u3092\u4f7f\u3044\u307e\u3059\u3002 toDataURL()\u3067\u5f97\u3089\u308c\u308b\u306e\u306f\u3001base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f\u753b\u50cf\u60c5\u5831\u306a\u306e\u3067\u3001 \u305d\u308c\u3092\u30b5\u30fc\u30d0\u306b\u9001\u3063\u3066\u3001base64\u30c7\u30b3\u30fc\u30c9\u3057\u3066\u4fdd\u5b58\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002 toDataURL()\u3057\u3066\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092POST\u3059\u308b\u90e8\u5206\u306ejavascript (ajax\u90e8\u5206\u304c\u9762\u5012\u306a\u306e\u3067\u3001prototype.js\u3092\u4f7f\u7528) function saveImage() { var imgdata = $('canvas_id').toDataURL(); // \u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068png, \u5f15\u6570\u3067jpeg\u3068\u304b\u3082\u53ef\u80fd imgdata = im\u2026","blog_title":"\u8d85\u81ea\u5df1\u6e80\u8db3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","categories":["html5","perl"],"author_name":"favril","type":"rich","height":"190","url":"https://favril.hatenablog.com/entry/20100316/1268725431"}