{"id":11373,"date":"2013-07-31T10:44:08","date_gmt":"2013-07-31T01:44:08","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=11373"},"modified":"2013-07-31T10:44:08","modified_gmt":"2013-07-31T01:44:08","slug":"psd-rb","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/psd-rb\/","title":{"rendered":"PSD\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3067\u304d\u308bRuby\u30e9\u30a4\u30d6\u30e9\u30ea\u300cPSD.rb\u300d\u304c\u51c4\u3044(\u304b\u3082\u3057\u308c\u306a\u3044)"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/07\/blogpsd.rb_.png\" alt=\"Psd rb\" title=\"psd.rb.png\" border=\"0\" width=\"560\" height=\"406\" \/><\/p>\n<p>PSD\u30d5\u30a1\u30a4\u30eb\u3068\u306f\u3001\u8a00\u308f\u305a\u3068\u77e5\u308c\u305fAdobe Photoshop\u304c\u4f7f\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3002\u3053\u306ePSD\u30d5\u30a1\u30a4\u30eb\u3092Ruby\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5922\u306e\u3088\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u300c<a href=\"http:\/\/cosmos.layervault.com\/psdrb.html\">PSD.rb<\/a>\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(<a href=\"http:\/\/layervault.tumblr.com\/post\/56891876898\/psd-rb\">Tumblr<\/a>)\u3002<\/p>\n<p>Adobe\u306ePSD\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u8a73\u7d30\u306f\u516c\u958b\u3055\u308c\u3066\u304a\u3089\u305a\u9577\u5e74\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u3057\u305f\u304c\u3001\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u4e0d\u900f\u660e\u6027\u304c\u53d6\u308a\u6255\u308f\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u3067\u304d\u308b\u3053\u3068\u306f?<\/h3>\n<p><a href=\"http:\/\/cosmos.layervault.com\/psdrb.html\">About<\/a>\u306b\u3088\u308b\u3068\u3001PSD.rb\u306f\u7dcf\u5408\u7684\u306aPSD\u30d5\u30a1\u30a4\u30eb\u30d1\u30fc\u30b5\u30fc\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c4\u30ea\u30fc\u69cb\u9020\u306e\u30c7\u30fc\u30bf\u3092\u30cf\u30c3\u30b7\u30e5\u5f62\u5f0f\u3067\u7ba1\u7406\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/07\/blogPSD.rb-from-LayerVault.png\" alt=\"PSD rb from LayerVault\" title=\"PSD.rb from LayerVault.png\" border=\"0\" width=\"560\" height=\"331\" \/><\/p>\n<p>\u30ec\u30a4\u30e4\u30fc\u60c5\u5831\u306f\u3082\u3061\u308d\u3093\u3001\u30ec\u30a4\u30e4\u30fc\u5185\u90e8\u306e\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u3084\u30d5\u30a9\u30f3\u30c8\u540d\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306e\u5185\u5bb9\u3001\u8272\u60c5\u5831\u306a\u3069\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n<p><a href=\"https:\/\/github.com\/layervault\/psd.rb\">GitHub<\/a>\u30da\u30fc\u30b8\u306b\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"ruby\">require 'psd'\n\npsd = PSD.new('\/path\/to\/file.psd')\npsd.parse!\npp psd.tree.to_hash\n<\/code><\/pre>\n<p>psd\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u89e3\u6790\u5b9f\u884c\u3002pp\u3067\u89e3\u6790\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"ruby\">{:children=>\n  [{:type=>:group,\n    :visible=>false,\n    :opacity=>1.0,\n    :blending_mode=>\"normal\",\n    :name=>\"Version D\",\n    :left=>0,\n    :right=>900,\n    :top=>0,\n    :bottom=>600,\n    :height=>900,\n    :width=>600,\n    :children=>\n     [{:type=>:layer,\n       :visible=>true,\n       :opacity=>1.0,\n       :blending_mode=>\"normal\",\n       :name=>\"Make a change and save.\",\n       :left=>275,\n       :right=>636,\n       :top=>435,\n       :bottom=>466,\n       :height=>31,\n       :width=>361,\n       :text=>\n        {:value=>\"Make a change and save.\",\n         :font=>\n          {:name=>\"HelveticaNeue-Light\",\n           :sizes=>[33.0],\n           :colors=>[[255, 19, 120, 98]],\n           :css=>\n            \"font-family: \\\"HelveticaNeue-Light\\\", \\\"AdobeInvisFont\\\", \\\"MyriadPro-Regular\\\";\\nfont-size: 33.0pt;\\ncolor: rgba(19, 120, 98, 255);\"},\n         :left=>0,\n         :top=>0,\n         :right=>0,\n         :bottom=>0,\n         :transform=>\n          {:xx=>1.0, :xy=>0.0, :yx=>0.0, :yy=>1.0, :tx=>456.0, :ty=>459.0}},\n       :ref_x=>264.0,\n       :ref_y=>-3.0}]\n  }],\n:document=>{:width=>900, :height=>600}}\n<\/code><\/pre>\n<p>PSD\u30d5\u30a1\u30a4\u30eb\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u5404\u7a2e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u51c4\u3044(\u304b\u3082\u3057\u308c\u306a\u3044)<\/h3>\n<p>\u73fe\u6bb5\u968e\u3067\u3069\u306e\u304f\u3089\u3044\u5b89\u5b9a\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u306e\u304b\u4e0d\u660e\u3067\u3059\u304c\u3001\u9577\u5e74\u8b0e\u3060\u3063\u305fPSD\u30d5\u30a3\u30a2\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092Ruby\u304b\u3089\u64cd\u4f5c\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u516c\u958b\u3055\u308c\u305f\u306e\u306f\u51c4\u3044\u3002GitHub\u3092\u751f\u304b\u3057\u305f\u4eca\u5f8c\u306e\u767a\u5c55\u306b\u3082\u671f\u5f85\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PSD\u30d5\u30a1\u30a4\u30eb\u3068\u306f\u3001\u8a00\u308f\u305a\u3068\u77e5\u308c\u305fAdobe Photoshop\u304c\u4f7f\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3002\u3053\u306ePSD\u30d5\u30a1\u30a4\u30eb\u3092Ruby\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5922\u306e\u3088\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u300cPSD.rb\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(Tumblr)\u3002 Ad [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11371,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[1099,154],"class_list":["post-11373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-psd","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/11373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=11373"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/11373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/11371"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=11373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=11373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=11373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}