{"id":481,"date":"2020-07-20T20:04:10","date_gmt":"2020-07-20T11:04:10","guid":{"rendered":"https:\/\/webclass.jp\/blog\/?p=481"},"modified":"2020-11-01T15:08:05","modified_gmt":"2020-11-01T06:08:05","slug":"%e7%94%bb%e5%83%8f%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e6%89%8b%e6%97%a9%e3%81%8f%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e3%81%84-in-mac","status":"publish","type":"post","link":"https:\/\/webclass.jp\/blog\/2020\/07\/20\/%e7%94%bb%e5%83%8f%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e6%89%8b%e6%97%a9%e3%81%8f%e5%8f%96%e5%be%97%e3%81%97%e3%81%9f%e3%81%84-in-mac\/","title":{"rendered":"\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u624b\u65e9\u304f\u53d6\u5f97\u3057\u305f\u3044 (in Mac)"},"content":{"rendered":"<p>\u5c0f\u30cd\u30bf\u3067\u3059\u3002<\/p>\n<p>HTML \u3068\u305d\u3053\u304b\u3089\u30ea\u30f3\u30af\u3055\u308c\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304c\u6ca2\u5c71\u3042\u3063\u3066\u3001\u753b\u50cf\u30d4\u30af\u30bb\u30eb\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u3066 HTML \u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u304f\u5fc5\u8981\u304c\u3042\u3063\u305f\u3093\u3067\u3059\u3002\uff08<a href=\"https:\/\/www.mizdra.net\/entry\/2020\/05\/31\/192613\">\u3053\u308c<\/a>\u5bfe\u7b56\u3002\uff09<\/p>\n<p>\u3069\u3053\u307e\u3067\u7c21\u7565\u5316\u3067\u304d\u308b\u304b\u8003\u3048\u305f\u7d50\u679c\u3001Automator \u3092\u5229\u7528\u3057\u3066\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>Finder \u4e0a\u3067\u753b\u50cf\u3092\u9078\u629e\u3057\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3092\u62bc\u3059\u3068\u3001\u30b5\u30a4\u30ba\u304c\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u5165\u308b<\/li>\n<li>HTML \u306b\u30da\u30fc\u30b9\u30c8<\/li>\n<\/ol>\n<p>\u30b5\u30a4\u30ba\u81ea\u52d5\u633f\u5165\u3068\u307e\u3067\u306f\u3044\u3051\u307e\u305b\u3093\u304c\u3001\u307e\u3042\u307e\u3042\u624b\u8efd\u306b\u306a\u3063\u305f\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3069\u3046\u3084\u3063\u305f\u304b\u30b7\u30a7\u30a2\u3057\u307e\u3059\u3002<\/p>\n<h2>ImageMagick \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b\u306e\u3067\u3001ImageMagick \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\nfile \u30b3\u30de\u30f3\u30c9\u306e\u7d50\u679c\u3092\u30d1\u30fc\u30b9\u3057\u3066\u3082\u3044\u3044\u3093\u3067\u3059\u304c\u3001\u697d\u306a\u65b9\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">$ brew install imagemagick<\/code><\/pre>\n<p>\u3059\u308b\u3068 identity \u30b3\u30de\u30f3\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3002<\/p>\n<pre><code class=\"language-bash\">$ identify -format &#039;width=%w,height=%h&#039; image.jpg\nwidth=600,height=600% <\/code><\/pre>\n<h2>Automator \u3067\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u8ffd\u52a0<\/h2>\n<ol>\n<li>Automator \u8d77\u52d5\u3002<\/li>\n<li><code>\u2318 + N<\/code> \u3067\u65b0\u898f\u4f5c\u6210\u3002<\/li>\n<li>&quot;Quick Action&quot; \u3092\u9078\u629e\u3057\u3066 Choose\u3002<img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2020\/07\/1.png\" alt=\"Quick Action\" \/><\/li>\n<li>\u53f3\u30d1\u30cd\u30eb\u3067\u3001Workflow receives current &quot;image files&quot; in Finder \u3092\u9078\u629e\u3002<\/li>\n<li>\u5de6\u30d1\u30cd\u30eb\u306e\u691c\u7d22\u6b04\u306b &quot;Run Shell Script&quot; \u3068\u5165\u529b\u3059\u308b\u3068\u51fa\u3066\u304f\u308b &quot;Run Shell Script&quot; \u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3002<\/li>\n<li>Pass input \u3092 &quot;as arguments&quot; \u306b\u5909\u66f4\u3002<\/li>\n<li>\u30b3\u30de\u30f3\u30c9\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3002\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f\u81ea\u7531\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\n<pre><code class=\"language-bash\">for f in &quot;$@&quot;\ndo\n\/usr\/local\/bin\/identify -format &#039;width=%w,height=%h&#039; &quot;$f&quot; | pbcopy\ndone<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2020\/07\/Screen-Shot-2020-07-20-at-18.58.24.png\" alt=\"Script\" \/><\/p>\n<\/li>\n<li><code>\u2318 + S<\/code> \u3067\u4fdd\u5b58\u3001&quot;Copy image size&quot; \u3068\u540d\u524d\u3092\u3064\u3051\u308b\u3002<\/li>\n<\/ol>\n<p>\u3053\u3053\u307e\u3067\u4e0a\u624b\u304f\u884c\u3063\u305f\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002Finder \u4e0a\u3067\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001&quot;Quick Action&quot; \u306b &quot;Copy image size&quot; \u304c\u51fa\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n\u9078\u629e\u3057\u305f\u5f8c\u3001\u3069\u3053\u304b\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u6b04\u3067 <code>\u2318 + V<\/code> \u3092\u62bc\u3057\u3066\u30da\u30fc\u30b9\u30c8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<code>width=600,height=600<\/code> \u307f\u305f\u3044\u306a\u6587\u5b57\u304c\u5165\u529b\u3055\u308c\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<h2>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u8a2d\u5b9a<\/h2>\n<p>\u53f3\u30af\u30ea\u30c3\u30af\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u9078\u629e\u3059\u308b\u306e\u306f\u3060\u308b\u3044\u306e\u3067\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u3092\u958b\u304f\u3002<\/li>\n<li>Keyboard &gt; Shortcuts \u3092\u958b\u304f\u3002<\/li>\n<li>Services \u306e\u4e2d\u306b\u3042\u308b &quot;Copy image size&quot; \u3092\u9078\u629e\u3002<\/li>\n<li>&quot;Add Shortcut&quot; \u3092\u62bc\u3057\u3066\u8a2d\u5b9a\u3057\u305f\u3044\u30ad\u30fc\uff08\u81ea\u5206\u306f <code>\u2318 + Ctrl + Shift + C<\/code> \u306b\u3057\u307e\u3057\u305f\uff09\u3092\u5165\u529b\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u3067\u8a2d\u5b9a\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>\u4f7f\u3044\u65b9<\/h2>\n<p>Finder\u3067\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3073\u3001\u8a2d\u5b9a\u3057\u305f\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u753b\u50cf\u30b5\u30a4\u30ba\u304c\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u5165\u308a\u3001\u30da\u30fc\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002<br \/>\n\u307e\u3001\u305d\u308c\u3060\u3051\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Mac \u30e6\u30fc\u30b6\u30fc\u3067\u3082 Automator \u3063\u3066\u4e2d\u3005\u77e5\u308b\u6a5f\u4f1a\u304c\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u304c\u3069\u3046\u3067\u3057\u3087\u3046\u3002<br \/>\n\u3044\u3056\u6709\u52b9\u6d3b\u7528\u3067\u304d\u308b\u6a5f\u4f1a\u304c\u6765\u305f\u6642\u306b\u5b58\u5728\u3092\u601d\u3044\u51fa\u305b\u308b\u7a0b\u5ea6\u306b\u306f\u8a18\u61b6\u306b\u3068\u3069\u3081\u3066\u304a\u304d\u305f\u3044\u3002<br \/>\n\u5b9f\u969b\u306e\u3068\u3053\u308d\u3001HTML \u3068\u5b9f\u30d5\u30a1\u30a4\u30eb\u306e\u5bfe\u5fdc\u95a2\u4fc2\u3092\u8a8d\u8b58\u3057\u3066\u3044\u308b IDE \u3060\u3063\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b HTML \u3092\u66f4\u65b0\u3067\u304d\u308b\u3093\u3058\u3083\u306a\u3044\u304b\u3001IDE \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u308c\u3070\u826f\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u305f\u6642\u9593\u306e\u3042\u308b\u6642\u306b\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u30cd\u30bf\u3067\u3059\u3002 HTML \u3068\u305d\u3053\u304b\u3089\u30ea\u30f3\u30af\u3055\u308c\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304c\u6ca2\u5c71\u3042\u3063\u3066\u3001\u753b\u50cf\u30d4\u30af\u30bb\u30eb\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u3066 HTML \u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u304f\u5fc5\u8981\u304c\u3042\u3063\u305f\u3093\u3067\u3059\u3002\uff08\u3053\u308c\u5bfe\u7b56\u3002\uff09 \u3069\u3053\u307e\u3067\u7c21\u7565\u5316\u3067\u304d\u308b\u304b\u8003\u3048\u305f\u7d50\u679c\u3001Automator \u3092\u5229 [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":494,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":5,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"predecessor-version":[{"id":546,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts\/481\/revisions\/546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/media\/494"}],"wp:attachment":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}