search
LoginSignup
3

More than 1 year has passed since last update.

posted at

updated at

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

環境

  • 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

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
What you can do with signing up
3