Skip to content

Instantly share code, notes, and snippets.

@cwsaylor
Created March 5, 2009 16:46
Show Gist options
  • Save cwsaylor/74430 to your computer and use it in GitHub Desktop.
Save cwsaylor/74430 to your computer and use it in GitHub Desktop.
Install ImageMagick for only manipulating image files
# Get http://www.ijg.org/files/jpegsrc.v6b.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
sudo mkdir -p /usr/local/man/man1
./configure --enable-shared --enable-static
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a
# Get the latest version or http://sourceforge.net/project/downloading.php?groupname=libpng&filename=libpng-1.2.34.tar.bz2&use_mirror=superb-east
tar zxf libpng-1.2.24.tar.gz
cd libpng-1.2.24
./configure
make
sudo make install
# Get ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar zxf ImageMagick.tar.gz
cd ImageMagick-6.3.8/
./configure
# Look for to see if it's all setup correctly
# JPEG v1 --with-jpeg=yes yes
# PNG --with-png=yes yes
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment