7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Amazon Linux 2 に ImageMagick をインストールする

7
Last updated at Posted at 2020-09-13

環境

  • Amazon Linux 2 (RedHat 7 ベース)
  • ImageMagick 7.0.10-29

インストール方法(ソースコードからコンパイルする場合)

$ IMAGEMAGICK_VERSION='7.0.10-29'

$ sudo yum install -y libwebp libwebp-devel

$ mkdir -p ~/tmp && cd ~/tmp
$ wget https://imagemagick.org/download/ImageMagick-${IMAGEMAGICK_VERSION}.tar.gz
$ tar zxvf ImageMagick-${IMAGEMAGICK_VERSION}.tar.gz

$ ./configure
$ make
$ sudo make install

インストール方法(rpm 利用)

$ IMAGEMAGICK_VERSION='7.0.10-29'

$ sudo yum install -y fftw3
$ sudo yum install -y https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libraqm-0.7.0-4.el7.x86_64.rpm
$ sudo yum install -y https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-${IMAGEMAGICK_VERSION}.x86_64.rpm
$ sudo yum install -y https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-${IMAGEMAGICK_VERSION}.x86_64.rpm

$ yum list installed | grep ImageMagick
ImageMagick.x86_64            7.0.10-29                      installed
ImageMagick-libs.x86_64       7.0.10-29                      installed

インストール後の確認

$ which convert
/usr/bin/convert

$ convert --version
Version: ImageMagick 7.0.10-29 Q16 x86_64 2020-09-05 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(3.1)
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jng jpeg lcms ltdl lzma openexr pangocairo png ps raqm rsvg tiff webp wmf x xml zlib
7
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?