« ^ »

macOSにHomebrewを使ってImageMagickをインストールする

所要時間: 約 3分

ImageMagick(イメージマジック)は画像を操作したり表示したりするためのソフトウェアスイートである。GIF、JPEG、JPEG 2000、PNG、PDF、Photo CD、TIFF、DPXなど100種類以上の画像ファイルフォーマットに対応している[2]。GPL互換でより制限が緩い独自ライセンスが適用されている[3]。

Wikipediaより引用 1

今回はHomebrewを使ってインストールする。 HomebrewにはすでにImageMagickのFormulaがあるため以下のコマンドでインストールできる。 Homebrew自体のインストールは済んでいることを前提とする2

brew install imagemagick
imagemagick 7.1.0-16 is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.11.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:5cbd30acd1a8447bd66a3d3933b3f7cb9836d2c9cd49a6bd7f64b2225ef1fc4b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5cbd30acd1a8447bd66a3d3933b3f7cb9836d2c9cd49a6bd7f64b2225ef1fc4b?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.70.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:85ea450b1a990c33a988c12cea63c25ba3a483465eb9ddc762002dbff588642c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:85ea450b1a990c33a988c12cea63c25ba3a483465eb9ddc762002dbff588642c?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/imagemagick/manifests/7.1.0-18
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/imagemagick/blobs/sha256:155b327c0ab363b8d7602329cb711fd96c40c526d6a025d66a1ff067e7af2c6d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:155b327c0ab363b8d7602329cb711fd96c40c526d6a025d66a1ff067e7af2c6d?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Upgrading imagemagick
  7.1.0-16 -> 7.1.0-18 

==> Installing dependencies for imagemagick: freetype and glib
==> Installing imagemagick dependency: freetype
==> Pouring freetype--2.11.1.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/freetype/2.11.1: 66 files, 2.3MB
==> Installing imagemagick dependency: glib
==> Pouring glib--2.70.2.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.70.2: 444 files, 21.1MB
==> Installing imagemagick
==> Pouring imagemagick--7.1.0-18.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/imagemagick/7.1.0-18: 801 files, 30.4MB
==> Running `brew cleanup imagemagick`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/imagemagick/7.1.0-16... (801 files, 30.4MB)
Removing: /Users/sximada/Library/Caches/Homebrew/imagemagick--7.1.0-16... (10.2MB)
==> Upgrading 7 dependents:
Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
graphviz 2.49.3 -> 2.50.0, harfbuzz 3.1.2 -> 3.2.0, pango 1.50.0 -> 1.50.3, plantuml 1.2021.15 -> 1.2021.16, poppler 21.11.0 -> 21.12.0, qemu 6.1.0_1 -> 6.2.0, qt 6.2.1 -> 6.2.2==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.7.3.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:3f8f45380f6c356d12209c7de7b145a4715a79d79713e8364ec04ab5ab187cae
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:3f8f45380f6c356d12209c7de7b145a4715a79d79713e8364ec04ab5ab187cae?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/3.2.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:a7b38465eb9da30e14c80664dba0d1a3bbb971b5e3086e6c4694f0c5da8dd718
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a7b38465eb9da30e14c80664dba0d1a3bbb971b5e3086e6c4694f0c5da8dd718?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pango/manifests/1.50.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pango/blobs/sha256:469f5768ce3ac691dad77b5c4b77d7a9b706883afcc595f2e5f1cf7f7cecd330
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:469f5768ce3ac691dad77b5c4b77d7a9b706883afcc595f2e5f1cf7f7cecd330?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/netpbm/manifests/10.86.27
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/netpbm/blobs/sha256:d9d723f44d5498a61b8ae5b933a757711fa5e70162f36371bbdd55c332a10b91
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d9d723f44d5498a61b8ae5b933a757711fa5e70162f36371bbdd55c332a10b91?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/graphviz/manifests/2.50.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/graphviz/blobs/sha256:528774acbc0e94a60c616773771d6ae73830e66f8e6adf7bf888c67947f04902
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:528774acbc0e94a60c616773771d6ae73830e66f8e6adf7bf888c67947f04902?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/plantuml/manifests/1.2021.16
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/plantuml/blobs/sha256:3d2b751b13819bec1c4f9a7cb8a346d716088e75e6d785dea7ed6b7b60e3b0e0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:3d2b751b13819bec1c4f9a7cb8a346d716088e75e6d785dea7ed6b7b60e3b0e0?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/assimp/manifests/5.1.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/assimp/blobs/sha256:c2c0d009713226012cf3b2cb02f9b8938816ac0fced8313a1fed0289a1a79cd1
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c2c0d009713226012cf3b2cb02f9b8938816ac0fced8313a1fed0289a1a79cd1?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/double-conversion/manifests/3.1.7
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/double-conversion/blobs/sha256:affec63dfbab3c804d0263a7604d3b856c0a4caba03da76af8036aa19a4461e7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:affec63dfbab3c804d0263a7604d3b856c0a4caba03da76af8036aa19a4461e7?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/qt/manifests/6.2.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/qt/blobs/sha256:c76275715703cff6d611c096f1eaa61edabdab7b282c1ecb5677b21eafdd0754
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c76275715703cff6d611c096f1eaa61edabdab7b282c1ecb5677b21eafdd0754?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nspr/manifests/4.33
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nspr/blobs/sha256:e07523d89970090c42cbf650924713fff254ecb9efcd8b1f1db5813fdde60fef
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:e07523d89970090c42cbf650924713fff254ecb9efcd8b1f1db5813fdde60fef?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nss/manifests/3.73.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nss/blobs/sha256:d543faa48ca68471bbd9a0f6862047946e54abd8fe00235b29ecffef1e861afb
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d543faa48ca68471bbd9a0f6862047946e54abd8fe00235b29ecffef1e861afb?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/poppler/manifests/21.12.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/poppler/blobs/sha256:fad8829869b4072c7ae705769e0ab443a89d567938c9de4968d3d6e5363846f8
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:fad8829869b4072c7ae705769e0ab443a89d567938c9de4968d3d6e5363846f8?se=2022-01-02T23%3A40%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/manifests/6.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/blobs/sha256:15ee5cba182428fe2bcd80da6605214104b77e808a484c97ab281741f1a66a06
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:15ee5cba182428fe2bcd80da6605214104b77e808a484c97ab281741f1a66a06?se=2022-01-02T23%3A45%3A00Z######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/qemu/manifests/6.2.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/qemu/blobs/sha256:8f1b83d17955d66e6df076a1d0abd4a00fdf91d23a0644d696a5937e1e64d156
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8f1b83d17955d66e6df076a1d0abd4a00fdf91d23a0644d696a5937e1e64d156?se=2022-01-02T23%3A45%3A00Z######################################################################## 100.0%
==> Upgrading harfbuzz
  3.1.2 -> 3.2.0 

==> Installing dependencies for harfbuzz: libx11
==> Installing harfbuzz dependency: libx11
==> Pouring libx11--1.7.3.1.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/libx11/1.7.3.1: 1,055 files, 7MB
==> Installing harfbuzz
==> Pouring harfbuzz--3.2.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/harfbuzz/3.2.0: 68 files, 7.5MB
==> Running `brew cleanup harfbuzz`...
Removing: /usr/local/Cellar/harfbuzz/3.1.2... (68 files, 7.5MB)
Removing: /Users/sximada/Library/Caches/Homebrew/harfbuzz--3.1.2... (2.2MB)
==> Upgrading pango
  1.50.0 -> 1.50.3 

==> Pouring pango--1.50.3.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/pango/1.50.3: 67 files, 3.3MB
==> Running `brew cleanup pango`...
Removing: /usr/local/Cellar/pango/1.50.0... (67 files, 3.3MB)
Removing: /Users/sximada/Library/Caches/Homebrew/pango--1.50.0... (821.5KB)
==> Upgrading graphviz
  2.49.3 -> 2.50.0 

==> Installing dependencies for graphviz: netpbm
==> Installing graphviz dependency: netpbm
==> Pouring netpbm--10.86.27.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/netpbm/10.86.27: 410 files, 17.8MB
==> Installing graphviz
==> Pouring graphviz--2.50.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/graphviz/2.50.0: 292 files, 6.9MB
==> Running `brew cleanup graphviz`...
Removing: /usr/local/Cellar/graphviz/2.49.3... (295 files, 7.9MB)
Removing: /Users/sximada/Library/Caches/Homebrew/graphviz--2.49.3... (3.7MB)
==> Upgrading plantuml
  1.2021.15 -> 1.2021.16 

==> Pouring plantuml--1.2021.16.all.bottle.tar.gz
🍺  /usr/local/Cellar/plantuml/1.2021.16: 4 files, 9.1MB
==> Running `brew cleanup plantuml`...
Removing: /usr/local/Cellar/plantuml/1.2021.15... (4 files, 8.3MB)
Removing: /Users/sximada/Library/Caches/Homebrew/plantuml--1.2021.15... (7.7MB)
==> Upgrading qt
  6.2.1 -> 6.2.2 

==> Installing dependencies for qt: assimp and double-conversion
==> Installing qt dependency: assimp
==> Pouring assimp--5.1.2.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/assimp/5.1.2: 101 files, 9.7MB
==> Installing qt dependency: double-conversion
==> Pouring double-conversion--3.1.7.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/double-conversion/3.1.7: 26 files, 257.4KB
==> Installing qt
==> Pouring qt--6.2.2.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/qt/6.2.2: 12,156 files, 510.3MB
==> Running `brew cleanup qt`...
Removing: /usr/local/Cellar/qt/6.2.1... (11,887 files, 511.6MB)
Removing: /Users/sximada/Library/Caches/Homebrew/qt--6.2.1... (148.1MB)
==> Upgrading poppler
  21.11.0 -> 21.12.0 

==> Installing dependencies for poppler: nspr and nss
🍺  /usr/local/Cellar/nspr/4.33: 86 files, 1.2MB
==> Installing poppler dependency: nss
==> Pouring nss--3.73.1.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/nss/3.73.1: 226 files, 43.2MB
==> Installing poppler
==> Pouring poppler--21.12.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/poppler/21.12.0: 477 files, 28.2MB
==> Running `brew cleanup poppler`...
Removing: /usr/local/Cellar/poppler/21.11.0... (477 files, 28MB)
Removing: /Users/sximada/Library/Caches/Homebrew/poppler--21.11.0... (8.6MB)
==> Upgrading qemu
  6.1.0_1 -> 6.2.0 

==> Installing dependencies for qemu: ncurses
==> Installing qemu dependency: ncurses
==> Pouring ncurses--6.3.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/ncurses/6.3: 3,968 files, 9.3MB
==> Installing qemu
==> Pouring qemu--6.2.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/qemu/6.2.0: 162 files, 556.7MB
==> Running `brew cleanup qemu`...
Removing: /usr/local/Cellar/qemu/6.1.0_1... (161 files, 552MB)
Removing: /Users/sximada/Library/Caches/Homebrew/qemu--6.1.0... (101.4MB)
Removing: /Users/sximada/Library/Caches/Homebrew/qemu--6.1.0_1... (101.4MB)
==> Checking for dependents of upgraded formulae...
==> No broken dependents found!

脚注


1

出典: フリー百科事典『ウィキペディア(Wikipedia)』ImageMagick https://ja.wikipedia.org/wiki/ImageMagick

2

Homebrew自体をインストールするにはHomebrewの公式Webサイトに従ってインストールすると良い。 https://brew.sh/index_ja