{"id":5550,"date":"2022-01-25T01:05:24","date_gmt":"2022-01-24T16:05:24","guid":{"rendered":"https:\/\/greentown.tokyo\/?p=5550"},"modified":"2022-01-25T14:05:56","modified_gmt":"2022-01-25T05:05:56","slug":"imagemagick","status":"publish","type":"post","link":"https:\/\/greentown.tokyo\/?p=5550","title":{"rendered":"\u6587\u5b57\u5165\u308aPNG\u3092\u30b5\u30af\u30c3\u3068\u4f5c\u308b ImageMagick \u304c\u30b5\u30af\u30c3\u3068M1\u306b\u5165\u3089\u306a\u304b\u3063\u305f\u8a71"},"content":{"rendered":"\n<p>Web\u30b5\u30a4\u30c8\u306bPrivacyPolicy\u306e\u30da\u30fc\u30b8\u3092\u8a2d\u7f6e\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5076\u7136\u306b\u3082\u4f9d\u983c\u304c2\u4ef6\u3067\u3059\u3002<\/p>\n<p>\uff11\u4ef6\u306f\u8907\u696d\u3067\u3054\u4f9d\u983c\u3044\u305f\u3060\u3044\u305f\u3082\u306e\u3067squarespace\u306e\u30b5\u30a4\u30c8\u306b\u8a2d\u7f6e\u3001\u3082\u3046\uff11\u4ef6\u306fGooglePlayStore\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>GooglePlayStore\u306e\u65b9\u306f\u3001\uff12\u5e74\u524d\u306b\u30b9\u30c8\u30a2\u306b\u3060\u3057\u305f\uff08\u8ab0\u306b\u3082\u4f7f\u308f\u308c\u3066\u306a\u3044\uff09\u30a2\u30d7\u30ea\u306b\u30d7\u30e9\u30dd\u30ea\u304c\u66f8\u3044\u3066\u3042\u308b\u30b5\u30a4\u30c8\u304c\u5fc5\u8981\u3068\u306e\u3053\u3068\u3067\u3001GithubActions+GithubPages+Hugo\u3067\u5236\u4f5c\u4e2d\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u3051\u3063\u3053\u3046\u5927\u5909\u304b\u3064\u697d\u3057\u3044\u306e\u3067\u3001\u69cb\u7bc9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u8a18\u4e8b\u306b\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\uff08\u3067\u3082\u5272\u3051\u308b\u6642\u9593\u304c\u3042\u307e\u308a\u306a\u3044\u305f\u3081\u6c17\u9577\u306b\u3084\u308b\uff09<\/p>\n<p><a href=\"https:\/\/www.squarespace.com\/\">squarespace<\/a> \u306f\u3001\u30cb\u30e5\u30fc\u30e8\u30fc\u30af\u767a\u306eWeb\u30b5\u30a4\u30c8\u30d3\u30eb\u30c0\u30fc\u3067\u3001\u4f7f\u3063\u305f\u611f\u3058 WordPress \u307f\u305f\u3044\u306a\u30e2\u30ce\u3067\u3059\u3002<\/p>\n<p>squarespace\u3067\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u306b\u3001\u304a\u554f\u3044\u5408\u308f\u305b\u7528\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u63b2\u8f09\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u3082\u3089\u3063\u305f\u5225\u306e\u30b5\u30a4\u30c8\u306e\u898b\u672c\u306e\u30e1\u30a2\u30c9\u90e8\u5206\u304cSVG\u30d5\u30a1\u30a4\u30eb\u3067\u3057\u305f\u3002\u9577\u65b9\u5f62\u306e\u56f3\u5f62\u306b\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u3066\u3001\u6587\u5b57\u81ea\u4f53\u306f\u9078\u629e\u3067\u304d\u306a\u3044\u72b6\u614b\u3067\u3059\u3002<\/p>\n<p>\u79c1\u306eSVG\u30d5\u30a1\u30a4\u30eb\u306e\u77e5\u8b58\u306f\u3001\u958b\u304f\u3068\u6570\u5b57\u3067\u57cb\u3081\u5c3d\u304f\u3055\u308c\u3066\u3044\u308b\u30d9\u30af\u30bf\u30fc\u753b\u50cf\u3068\u304b\u3044\u3046\u3084\u3064\u3001\u3001\u30ec\u30d9\u30eb\u3067\u3059\u3002AffinityDesigner\u3067\u4f5c\u308c\u3070\u3044\u3044\u304b\u30fc\u3068\u30b5\u30af\u30c3\u3068\u4f5c\u3063\u3066\u307f\u305f\u3082\u306e\u306e\uff08AffinityDesigner\u306e\u77e5\u8b58\u3082\u3042\u3093\u307e\u308a\u306a\u3044\u306e\u3067\u3059\u304c\uff09\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305fSVG\u30d5\u30a1\u30a4\u30eb\u306f\u6587\u5b57\u5217\u304c\u9078\u629e\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u9577\u65b9\u5f62\u306e\u753b\u50cf\u3092\u5f8c\u308d\u306b\u304a\u3044\u3066\u305d\u306e\u4e0a\u306b\u6587\u5b57\u3092\u91cd\u306d\u3066\u30ec\u30a4\u30e4\u30fc\u3092\u7d50\u5408\uff01\u3068\u304b\u30e9\u30b9\u30bf\u30e9\u30a4\u30ba\u3068\u3084\u3089\u3092\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u6587\u5b57\u304c\u9078\u629e\u3067\u304d\u3061\u3083\u3046\u3002<\/p>\n<p>\u56f0\u3063\u305f\u30fc\u3002\u5225\u306e\u65b9\u6cd5\u3067\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<p>Procreate\u3067\u9577\u65b9\u5f62\u753b\u50cf+\u6587\u5b57\u5217\u306e\u753b\u50cf\u3092\u4f5c\u6210\u3057\u3001PSD\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3001\u305d\u308c\u3092XD\u306b\u8aad\u307f\u8fbc\u307e\u305b\u3066SVG\u306b\u51fa\u529b\u3059\u308b\u3002\u3046\u30fc\u3093\u30c0\u30e1\u3002<\/p>\n<p>\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u308b\uff08\u4f9d\u983c\u5143\u306e\uff09\u30a8\u30f3\u30b8\u30cb\u30a2\u3055\u3093\u306b\u76f8\u8ac7\u3057\u305f\u3089\u3001PNG\u3067\u3082\u5168\u7136\u304a\u3063\u3051\u3044\uff01<strong><span style=\"color: #ff00ff;\">ImageMagick<\/span><\/strong>\u3067\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\uff01\u3068\u6559\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u65e9\u901f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\" data-file=\"tarminal\"><code>&#x1f344; % brew install imagemagick\nError: Cannot install under Rosetta 2 in ARM default prefix (\/opt\/homebrew)!\nTo rerun under ARM use:\n    arch -arm64 brew install ...\nTo install under x86_64, install Homebrew into \/usr\/local.<\/code><\/pre><\/div>\n\n\n\n<p><strong><span style=\"color: #ff00ff;\">arch -arm64 \u3092\u4ed8\u3051\u308b\u306e\u3088\u30fc<\/span><\/strong>\u3001\u3068\u8a00\u308f\u308c\u308b\u304c\u307e\u307e<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\" data-file=\"tarminal\"><code>&#x1f344; % arch -arm64 brew install imagemagick\n :\n :\nError: python@3.9: the bottle needs the Apple Command Line Tools to be installed.\n  You can install them, if desired, with:\n    xcode-select --install<\/code><\/pre><\/div>\n\n\n\n<p><span>\u4eca\u5ea6\u306f <strong><span style=\"color: #ff00ff;\">Command line tools<\/span><span style=\"color: #ff00ff;\"> \u304c\u5fc5\u8981\u306a\u306e\u3088\u30fc\uff01<\/span><\/strong> \u3068\u8a00\u308f\u308c\u308b\u3002<\/span><\/p>\n<p>xcode\u5165\u308c\u3066\u308b\u3051\u3069\u3069\u3086\u3053\u3068\u30fc<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f33c; % sudo xcodebuild -license\nPassword:\nXcode and Apple SDKs Agreement\n :\nBy typing &#39;agree&#39; you are agreeing to the terms of the software license agreements. Type &#39;print&#39; to print them or anything else to cancel, [agree, print, cancel]  <\/code><\/pre><\/div>\n\n\n\n<p><strong><span style=\"color: #ff00ff;\">\u540c\u610f\u3057\u3066\u30fc<\/span><\/strong> \u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067 agree \u3057\u3066\u3001\u3082\u3063\u304b\u3044 brew..<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f33c; % arch -arm64 brew install imagemagick\n :\n :\nError: python@3.9: the bottle needs the Apple Command Line Tools to be installed.\n  You can install them, if desired, with:\n    xcode-select --install<\/code><\/pre><\/div>\n\n\n\n<p>\u3060\u3081\u3060\u30fc\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u30c4\u30fc\u30eb\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3067\u304d\u308b\u307f\u305f\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f344; % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables\n\nNo receipt for &#39;com.apple.pkg.CLTools_Executables&#39; found at &#39;\/&#39;.<\/code><\/pre><\/div>\n\n\n\n<p>\u306a\u3093\u3060\u3001\u5165\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3060\u3051\u306a\u306e\u304b\u3002&nbsp;<span><strong><span style=\"color: #ff00ff;\">xcode-select &#8211;install<\/span> <\/strong>\u3059\u308b\u3002\uff08\u3053\u308c\u306f\u3001Mac\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u3057\u305f\u3068\u304d\u306b\u6bce\u56de\u3084\u3063\u305f\u307b\u3046\u304c\u826f\u3044\u3089\u3057\u3044\u3002\u305f\u3076\u3093\uff09<\/span><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f344; % xcode-select --install\nxcode-select: note: install requested for command line developer tools<\/code><\/pre><\/div>\n\n\n\n<p>\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308b\u2192\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u2192\u540c\u610f\u3059\u308b\u3002<\/p>\n<p>\u3061\u3087\u3063\u3068\u6642\u9593\u304b\u304b\u308b\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u3082\u3046\u4e00\u5ea6 brew..<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f33c; % arch -arm64 brew install imagemagick\n :\n :\n==&gt; Installing imagemagick\n==&gt; Pouring imagemagick--7.1.0-20.arm64_big_sur.bottle.tar.gz\n&#x1f37a;  \/opt\/homebrew\/Cellar\/imagemagick\/7.1.0-20: 805 files, 32.9MB\n==&gt; Running `brew cleanup imagemagick`...\nDisable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.\nHide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).<\/code><\/pre><\/div>\n\n\n\n<p>\u4eca\u5ea6\u306f\u30a8\u30e9\u30fc\u306a\u304f\u7d42\u4e86&#x1f64c;<\/p>\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u30fc\u3002\u308f\u304f\u308f\u304f..<\/p>\n<p>\u4f7f\u3048\u308b\u30d5\u30a9\u30f3\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f33c; % magick -list font<\/code><\/pre><\/div>\n\n\n\n<p><span><span style=\"color: #ff00ff;\"><strong>Arial.ttf<\/strong><\/span> \u306b\u3057\u3088\u3046\u3002<\/span><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f33c; % convert -font \/System\/Library\/Fonts\/Supplemental\/Arial.ttf -pointsize 32 label:test test.png<\/code><\/pre><\/div>\n\n\n\n<p>\u3067\u304d\u305f\u30fc\u30fc\u30fc&#x1f38a;<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2022\/01\/test.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2022\/01\/test.png\" alt=\"\" width=\"53\" height=\"37\" class=\"alignnone size-full wp-image-5555\" \/><\/a><\/p>\n<p>\u5206\u304b\u308a\u3065\u3089\u3044\u306e\u3067\u3001\u8272\u3092\u3064\u3051\u308b\u3002<span>\uff08\u30ab\u30e9\u30fc\u4e00\u89a7\u306f\u3001<\/span><span><strong><span style=\"color: #ff00ff;\">magick -list color<\/span><\/strong>\uff09<\/span><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>&#x1f33c; % convert -font \/System\/Library\/Fonts\/Supplemental\/Arial.ttf -fill pink -background gray -pointsize 32 label:Sample color.png<\/code><\/pre><\/div>\n\n\n\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2022\/01\/color.png\"><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2022\/01\/color.png\" alt=\"\" width=\"110\" height=\"37\" class=\"alignnone size-full wp-image-5556\" \/><\/a><\/p>\n<p><\/p>\n<p><\/p>\n<p>\u3075\u30fc\u30fc\u30fc\u30fc<\/p>\n<p>\u75b2\u308c\u305f\u3002<\/p>\n<p>\u3051\u3069\u3001\u3053\u308c\u697d\u3061\u3093\u3067\u3059\u306d\u3002\u307e\u305f\u3072\u3068\u3064\u8ce2\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\u6587\u5b57\u5217\u304c\u9078\u629e\u3067\u304d\u306a\u3044SVG\u306e\u753b\u50cf\u306f\u3001\u3069\u3046\u3084\u3063\u3066\u4f5c\u3063\u305f\u306e\u3060\u308d\u3046\u304b&#8230;\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f344; % brew install imagemagick Error: Cannot install under Rosetta 2 in ARM default prefix (\/o &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5553,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-5550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-note"],"_links":{"self":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5550"}],"collection":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5550"}],"version-history":[{"count":8,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5550\/revisions"}],"predecessor-version":[{"id":5562,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5550\/revisions\/5562"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/media\/5553"}],"wp:attachment":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}