This process is also described at Installing ImageMagick with JPEG, TIFF and PNG Support, but I had some problems with a couple of the commands there, it was using files older than the current, and it included TIFF support which I don't expect to be using.
The first step was to get the required source files for each of the components required. These are the files I retrieved, and the web addresses were I retrieved them. (Note, the exact version numbers change over time.) Each of the .tar.gz files I downloaded and copied to the /usr/local/src directory of my EC2 linux system.
- ImageMagick.tar.gz from http://imagemagick.org/script/install-source.php#unix
- libpng-1.2.23.tar.gz from http://libpng.org/pub/png/libpng.html
- jpegsrc.v6b.tar.gz from http://www.ijg.org/files/
- zlib-1.2.3.tar.gz from http://www.zlib.net/
- cd /usr/local/src
- gunzip -c zlib-1.2.3.tar.gz | tar xvf -
- rm zlib-1.2.3.tar.gz
- cd zlib-1.2.3
- ./configure
- make
- make install
- cd /usr/local/src
- gunzip -c libpng-1.2.23.tar.gz | tar xvf -
- rm libpng-1.2.23.tar.gz
- cd libpng-1.2.23
- ./configure
- make
- make install
- cd /usr/local/src
- gunzip -c jpegsrc.v6b.tar.gz | tar xvf -
- rm jpegsrc.v6b.tar.gz
- cd jpeg-6b
- ./configure --enable-shared
- make
- make install
[may need to create man directories] - cd /usr/local/src
- gunzip -c ImageMagick.tar.gz | tar xvf -
- rm ImageMagick.tar.gz
- cd ImageMagick-6.3.7
- ./configure
[verify that jpeg and png are on] - make
- make install
- cd /
- identify –list Format
[verify that jpeg and png are on] - convert logo: logo.gif
- convert logo: logo.jpg
- convert logo: logo.png
[verify with separate viewer that this images are all OK]
No comments:
Post a Comment