{"id":18925,"date":"2014-04-11T19:40:22","date_gmt":"2014-04-11T10:40:22","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=18925"},"modified":"2014-04-11T19:40:22","modified_gmt":"2014-04-11T10:40:22","slug":"psd-rb-and-psd-native","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/psd-rb-and-psd-native\/","title":{"rendered":"\u300cPSD.rb\u300d\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u7248\u300cPSD Native\u300d\u516c\u958b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/04\/blogPSD.rb-and-PSD-Native.jpg\" alt=\"PSD rb and PSD Native\" title=\"PSD.rb and PSD Native.jpg\" border=\"0\" width=\"546\" height=\"363\" \/><\/p>\n<p>Ruby\u304b\u3089PSD\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u8a71\u984c\u306b\u306a\u3063\u305f\u300c<a href=\"https:\/\/cosmos.layervault.com\/psdrb.html\">PSD.rb<\/a>\u300d\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u69d8\u3005\u306a\u65b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3068\u3082\u306b(<a href=\"https:\/\/github.com\/layervault\/psd.rb\/releases\/tag\/v3.1.2\">\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/a>)\u3001\u540c\u6a5f\u80fd\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u66f8\u304d\u306a\u304a\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u300cPSD Native\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(<a href=\"http:\/\/layervault.tumblr.com\/post\/82315160104\/psd-rb-and-psd-native\">LayerValut<\/a>\u3001<a href=\"https:\/\/github.com\/layervault\/psd_native\">GitHub<\/a>)\u3002<\/p>\n<p>PSD Native\u306f\u3001PSD.rb\u306e\u4e2d\u3067\u30b9\u30d4\u30fc\u30c9\u306b\u5f71\u97ff\u3059\u308b\u90e8\u5206\u3092C\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u66f8\u304d\u306a\u304a\u3057\u305f\u3082\u306e\u3002\u4f7f\u3044\u52dd\u624b\u306f\u540c\u3058\u3067\u3059\u304c\u3001\u51e6\u7406\u901f\u5ea6\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u74b0\u5883\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u9069\u3057\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u3002<br \/>\n<!--more--><\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h3>\n<p><a href=\"https:\/\/github.com\/layervault\/psd_native\">GitHub<\/a>\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001Gemfile\u306b\u300cgem 'psd_native'\u300d\u3092\u8ffd\u52a0\u3057\u3066\u3001<\/p>\n<pre>\n$ bundle\n<\/pre>\n<p>bundle\u7d4c\u7531\u3067\u4f7f\u3046\u304b\u3001<\/p>\n<pre>\n$ gem install psd_native\n<\/pre>\n<p>gem\u3067\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>PSD.rb\u306e\u5834\u5408\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre><code class=\"ruby\">require 'psd_native'\n\npsd = PSD.new(\"path\/to\/file.psd\")\npsd.parse!\n<\/code><\/pre>\n<p>\u5148\u982d\u306erequire 'psd'\u304c\u3001require 'psd_native'\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5927\u5e45\u306b\u9ad8\u901f\u5316<\/h3>\n<p><a href=\"http:\/\/layervault.tumblr.com\/post\/82315160104\/psd-rb-and-psd-native\">Tumblr<\/a>\u306e\u8aac\u660e\u306b\u3088\u308b\u3068\u3001Pure Ruby\u7248\u306b\u6bd4\u8f03\u3057\u3066\u3001Native\u7248\u3067\u306f\u51e6\u7406\u901f\u5ea6\u304c\u5927\u5e45\u306b\u9ad8\u901f\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\n\u279c bundle exec ruby examples\/build_image.rb Mockup.psd\n      user     system      total        real\n324.350000   1.510000 325.860000 (326.016355)\n<\/pre>\n<p>Pure Ruby\u7248\u306e\u5834\u5408\u3002<\/p>\n<pre>\n\u279c bundle exec ruby examples\/build_image.rb Mockup.psd\n    user     system      total        real\n6.090000   1.110000   7.200000 (  7.205440)\n<\/pre>\n<p>Native\u7248\u306e\u5834\u5408\u3002<\/p>\n<p>\u51e6\u7406\u901f\u5ea6\u3067\u3060\u3044\u305f\u304450\u500d\u4ee5\u4e0a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5c11\u3057\u6c17\u306b\u306a\u308b\u306e\u304c\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u3059\u3002\u300c<span class=\"myboldred\">We will begin licensing PSD Native while leaving PSD.rb free.<\/span>\u300d\u3068\u3042\u308a\u3001PSD Native\u306f\u4f55\u3084\u3089\u6709\u6599\u306e\u96f0\u56f2\u6c17\u3067\u3059\u3002\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u5546\u7528\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u304c\u5fc5\u8981\u306a\u306e\u304b\u3082\u2026\u3002\u305d\u3046\u306a\u308b\u3068\u4e00\u6c17\u306b\u6577\u5c45\u304c\u9ad8\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u2026\u3002\u8a73\u7d30\u3092\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001Tumblr\u306e\u6700\u5f8c\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u3053\u306b\u9023\u7d61\u3057\u3066\u307f\u308b\u3068\u826f\u3044\u304b\u3082\u3067\u3059\u3002<\/p>\n<p>PSD.rb\u306b\u95a2\u3059\u308b\u4ee5\u524d\u306e\u8a18\u4e8b\u3082\u3069\u3046\u305e\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/softantenna.com\/blog\/software\/psd-rb\/\">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)<\/a>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ruby\u304b\u3089PSD\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u8a71\u984c\u306b\u306a\u3063\u305f\u300cPSD.rb\u300d\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u69d8\u3005\u306a\u65b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3068\u3082\u306b(\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8)\u3001\u540c\u6a5f\u80fd\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u66f8\u304d\u306a\u304a\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u300cPSD N [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":18924,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[2171],"class_list":["post-18925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-psd-rb"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/18925","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=18925"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/18925\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/18924"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=18925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=18925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=18925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}