{"id":436,"date":"2017-07-17T10:11:35","date_gmt":"2017-07-17T01:11:35","guid":{"rendered":"https:\/\/blog.srytk.com\/aquei\/?p=436"},"modified":"2018-10-12T07:21:14","modified_gmt":"2018-10-11T22:21:14","slug":"wordpress%e3%81%ae%e8%a8%98%e4%ba%8b%e5%86%85%e3%81%a7svg%e3%82%92%e6%89%8b%e8%bb%bd%e3%81%ab%e3%81%9d%e3%81%97%e3%81%a6%e5%ae%89%e5%85%a8%e3%81%ab%ef%bc%89%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/blog.srytk.com\/aquei\/436.html","title":{"rendered":"WordPress\u306e\u8a18\u4e8b\u5185\u3067SVG\u3092\u624b\u8efd\u306b(\u305d\u3057\u3066\u5b89\u5168\u306b\uff09\u4f7f\u3046"},"content":{"rendered":"<p>WordPress\u3067\u306f<a href=\"https:\/\/ja.wikipedia.org\/wiki\/Scalable_Vector_Graphics\">svg\u5f62\u5f0f<\/a>\u306e\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3002\u3053\u308c\u306f\u3001svg\u304cxml\u3092\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u610f\u56f3\u3057\u306a\u3044javascript\u306e\u5b9f\u884c\u306a\u3069\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u61f8\u5ff5\u304c\u3042\u308b\u304b\u3089\u3002\u502b\u7406\u4e0a\u306e\u554f\u984c\u306f\u3068\u3082\u304b\u304f\u3001\u5f97\u4f53\u306e\u3057\u308c\u306a\u3044\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u30d6\u30ed\u30b0\u6295\u7a3f\u7528\u306e\u753b\u50cf\u3092\u5f15\u3063\u5f35\u3063\u3066\u304f\u308b\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u306f\u59a5\u5f53\u306a\u5224\u65ad\u3060\u3068\u601d\u3046\u3002<\/p>\n<figure style=\"width: 744px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gistcdn.githack.com\/Aquei\/4ff07045a46166edf0940a44b0b31c91\/raw\/3629b9f879d0497cc5906925887b2e9b1b7f42a4\/image.svg\" alt=\"WordPress\" width=\"744\" height=\"462\" \/><figcaption class=\"wp-caption-text\"><a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:WordPress.svg\">\u30e9\u30a4\u30bb\u30f3\u30b9\u7b49<\/a><\/figcaption><\/figure>\n<p><!--more--><\/p>\n<p>\u300cwordpress svg\u300d\u306a\u3069\u3068\u691c\u7d22\u3059\u308b\u3068\u3001WordPress\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5f62\u5f0f\u5236\u9650\u3092\u7de9\u548c\u3057\u3001svg\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308bPHP\u30b9\u30af\u30ea\u30d7\u30c8\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7d39\u4ecb\u3059\u308b\u8a18\u4e8b\u304c\u305f\u304f\u3055\u3093\u30d2\u30c3\u30c8\u3059\u308b\u3002\u3057\u304b\u3057\u3001\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001\u3042\u3048\u3066\u5236\u9650\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u3063\u3066\u3001\u305d\u306e\u30ea\u30b9\u30af\u306f\u3057\u3063\u304b\u308a\u3068\u7406\u89e3\u3057\u3066\u304a\u304f\u3079\u304d\u3002\u307e\u3063\u305f\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u306b\u89e6\u308c\u3066\u3044\u306a\u3044\u8a18\u4e8b\u3082\u591a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u7121\u8cac\u4efb\u3067\u306a\u3093\u3068\u3082\u6b8b\u5ff5\u3060\u3051\u3069\u3002<\/p>\n<h2>\u3060\u3051\u3069\u3001\u30d9\u30af\u30bf\u30fc\u753b\u50cf\u3092\u4f7f\u3044\u305f\u3044<\/h2>\n<figure style=\"width: 200px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full\" src=\"https:\/\/gistcdn.githack.com\/Aquei\/4ff07045a46166edf0940a44b0b31c91\/raw\/42320416f116ee1658784e7490be59be78c6f04d\/image.svg\" width=\"200\" height=\"127\" \/><figcaption class=\"wp-caption-text\">\u30d9\u30af\u30bf\u30fc\u753b\u50cf\u306f\u62e1\u5927\u3057\u3066\u3082\u52a3\u5316\u304c\u306a\u304f\u7dba\u9e97\u3067\u4fbf\u5229 \u00a9 <a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:Bitmap_VS_SVG.svg\" rel=\"cc:attributionURL\">Yug, modifications by 3247<\/a> &#8211; &#8220;Bitmap VS SVG&#8221; &#8211; <a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/2.5\/deed.en\" rel=\"license\">Creative Commons: Attribution, Share Alike<\/a><\/figcaption><\/figure>\n<p>WordPress\u3067SVG\u3092\u6271\u3046\u306e\u306f\u9762\u5012\u304f\u3055\u3044\u3051\u3069\u3001\u3084\u306f\u308aSVG\u306a\u3069\u306e\u30d9\u30af\u30bf\u30fc\u753b\u50cf\u304c\u9b45\u529b\u7684\u306a\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u3002JPEG\u306a\u3069\u306e\u30e9\u30b9\u30bf\u753b\u50cf\u3068\u9055\u3063\u3066\u7e2e\u5c0f\u30fb\u62e1\u5927\u3057\u3066\u3082\u975e\u5e38\u306b\u7dba\u9e97\u306b\u8868\u793a\u3055\u308c\u308b\u4e0a\u3001\u5358\u7d14\u306a\u30a4\u30e9\u30b9\u30c8\u3067\u3042\u308c\u3070\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3082\u6570\u30ad\u30ed\u30d0\u30a4\u30c8\u7a0b\u5ea6\u3068\u56de\u7dda\u306b\u3082\u512a\u3057\u3044\u3002\u69d8\u3005\u306a\u30c7\u30d0\u30a4\u30b9\u3067\u8868\u793a\u3055\u308c\u3001\u300c\u30ae\u30ac\u304c\u6e1b\u308b\u300d\u306a\u3069\u304c\u6d41\u884c\u308b\u73fe\u4ee3\u3067\u30d6\u30ed\u30b0\u3068\u306e\u76f8\u6027\u306f\u826f\u3044\u3002\u3084\u3063\u3071\u308aWordPress\u3067\u3082\u6295\u7a3f\u5185\u3067SVG\u3092\u3067\u304d\u308b\u3060\u3051\u7c21\u4fbf\u306b\u4f7f\u3044\u305f\u3044\u3002<\/p>\n<h3>GitHub Gist + RawGit + &lt;img&gt;<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/primer\/octicons@v5.0.1\/lib\/svg\/logo-gist.svg\" alt=\"Gist\" width=\"600\" height=\"384\" \/><\/p>\n<p>\u305d\u3053\u3067\u3001\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3001\u306a\u3093\u3068\u304b\u30b7\u30c3\u30af\u30ea\u304f\u308b\u4f7f\u3044\u65b9\u3092\u8003\u3048\u305f\u3002\u307e\u305aSVG\u3060\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u61f8\u5ff5\u304b\u3089\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u304f\u306a\u3044\u306e\u3067\u3001<a href=\"https:\/\/gist.github.com\/\">GitHub Gist<\/a>\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001\u3068\u3044\u3046\u304b\u8cbc\u308a\u4ed8\u3051\u308b\u3053\u3068\u306b\u3057\u305f\u3002GitHub Gist\u306fGitHub\u306e\u59c9\u59b9\u30b5\u30fc\u30d3\u30b9\u307f\u305f\u3044\u306a\u3082\u306e\u3067\u3001git\u3067\u6587\u66f8\u3084\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7247\u3092\u5171\u6709\u3057\u305f\u308a\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u4e0a\u306e\u30e1\u30e2\u4ee3\u308f\u308a\u306b\u3064\u304b\u3063\u305f\u308a\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3002SVG\u306e\u4e2d\u8eab\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u3001\u30b3\u30d4\u30da\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u3067\u304d\u3066\u3061\u3087\u3046\u3069\u826f\u3044\u3002<\/p>\n<p>\u305f\u3060\u3001Gist\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u914d\u4fe1\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u3060\u3068SVG\u3068\u3057\u3066\u4f7f\u3048\u306a\u3044\u3002\u305d\u3053\u3067\u3001<a href=\"https:\/\/rawgit.com\/\">RawGit<\/a>\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002RawGit\u306fGitHub\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5207\u306acontent-type\u3068\u30bb\u30c3\u30c8\u3067CDN\u914d\u4fe1\u3057\u3066\u304f\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u3002\u3053\u308c\u3082Gist\u306eRawURL\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3060\u3051\u3067\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u697d\u30c1\u30f3\u3060\u3002<\/p>\n<p>\u3053\u308c\u3067\u30aa\u30f3\u30e9\u30a4\u30f3\u4e0a\u306bSVG\u30d5\u30a1\u30a4\u30eb\u304c\u7528\u610f\u3067\u304d\u305f\u304c\u3001\u56f0\u3063\u305f\u3053\u3068\u306bSVG\u306f\u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3\u3092\u8d85\u3048\u3066\u8868\u793a\u3059\u308b\u306e\u304c\u56f0\u96e3\u3060\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"JRTpJiiSqU\"><p><a href=\"https:\/\/blog.srytk.com\/aquei\/361.html\">SVG\u306euse\u8981\u7d20\u3067\u5916\u90e8uri\u3092\u6307\u5b9a\u3059\u308b\u6642\u306b\u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3\u306f\u4e0d\u53ef\uff1f<\/a><\/p><\/blockquote>\n<p><div class=\"embed-container\" data-purely-embed-scheme=\"https\" data-purely-embed-host=\"blog.srytk.com\" data-purely-embed-path=\"\/aquei\/361.html\/embed\" data-purely-embed-fragment=\"?secret=bH3XpFcDCW#?secret=JRTpJiiSqU\"><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;SVG\u306euse\u8981\u7d20\u3067\u5916\u90e8uri\u3092\u6307\u5b9a\u3059\u308b\u6642\u306b\u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3\u306f\u4e0d\u53ef\uff1f&#8221; &#8212; \u963fQ\u3055\u3093\u3068\u4e00\u7dd2\" src=\"https:\/\/blog.srytk.com\/aquei\/361.html\/embed#?secret=bH3XpFcDCW#?secret=JRTpJiiSqU\" data-secret=\"JRTpJiiSqU\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div><\/p>\n<p>\u306a\u306e\u3067\u3001SVG\u306eURL\u3092src\u306b\u6307\u5b9a\u3057\u305fIMG\u30bf\u30b0\u3067\u8868\u793a\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002WordPress\u306e\u30a8\u30c7\u30a3\u30bf\u304b\u3089\u300c\u30e1\u30c7\u30a3\u30a2\u3092\u8ffd\u52a0\u300d\u6a5f\u80fd\u3092\u3064\u304b\u3063\u3066SVG\u306eURL\u3092\u8cbc\u308a\u4ed8\u3051\u308c\u3070\u3044\u3044\u3002\u305f\u3060\u3001\u3053\u3053\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u3060\u3051\u3069\u3001SVG\u306b\u3088\u3063\u3066\u306f\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u6642\u304c\u3042\u308b\u3002\u51fa\u529b\u3055\u308c\u305f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u307f\u3066\u307f\u308b\u3068\u3001\u3069\u3046\u3084\u3089width\u3068height\u304c&#8221;0&#8243;\u306b\u306a\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u3002\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u3069\u3046\u3084\u3089SVG\u306eviewbox\u8981\u7d20\u304c\u9069\u5207\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068width\u3068height\u8981\u7d20\u304c0\u306b\u306a\u308b\u6a21\u69d8\u3002 \u3053\u3046\u306a\u3063\u305f\u5834\u5408\u3001&lt;IMG&gt;\u3084caption\u306ewidth\u3068height\u3092\u624b\u52d5\u3067\u9069\u5f53\u306a\u5024\u306b\u3057\u3066\u3084\u308b\u3068\u30a8\u30c7\u30a3\u30bf\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<h4>\u3042\u308c\uff1f\u624b\u8efd\u3058\u3083\u306a\u3044\uff1f<\/h4>\n<p>\u3053\u3053\u307e\u3067\u3059\u308b\u3068\u3001\u8a18\u4e8b\u5185\u306bSVG\u304c\u8868\u793a\u3055\u308c\u308b\u3093\u3060\u3051\u3069\u3001\u51b7\u9759\u306b\u306a\u3063\u3066\u307f\u308b\u3068\u624b\u8efd\u3068\u306f\u8a00\u3048\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u6163\u308c\u3061\u3083\u3048\u3070\u56f0\u3089\u306a\u3044\u3051\u3069\u3001\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u306b\u3057\u305f\u308a\u3001WordPress\u306e\u30e1\u30c7\u30a3\u30a2\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u7ba1\u7406\u3057\u305f\u308a\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u5f0a\u5bb3\u3082\u3042\u308b\u308f\u3051\u3060\u3057\u3002\u307e\u3042\u3001\u305d\u308c\u306f\u305d\u308c\u3068\u3057\u3066\u3001SVG\u306e\u5229\u70b9\u3068\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u3063\u3066\u3053\u3068\u3067\u6211\u6162\u3059\u308b\u3088\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u3067\u306fsvg\u5f62\u5f0f\u306e\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3002\u3053\u308c\u306f\u3001svg\u304cxml\u3092\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u610f\u56f3\u3057\u306a\u3044javascript\u306e\u5b9f\u884c\u306a\u3069\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u61f8\u5ff5\u304c\u3042\u308b\u304b\u3089\u3002\u502b\u7406\u4e0a\u306e\u554f\u984c\u306f\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"local","activitypub_max_image_attachments":5,"footnotes":""},"categories":[2],"tags":[174,148,3],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-tech","tag-rawgit","tag-svg","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":5,"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":499,"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/posts\/436\/revisions\/499"}],"wp:attachment":[{"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.srytk.com\/aquei\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}