Links: Homepage | Downloads
Dependencies: LibJPEG | LibPNG | LibTIFF
Version: 1.3.26
GraphicsMagick provides a comprehensive collection of utilities, programming interfaces, and GUIs, to support file format conversion, image processing, and 2D vector rendering.
Get the Code
Switch to /usr/local/src
and download the source package.
cd /usr/local/src
curl --remote-name --location http://download.sourceforge.net/graphicsmagick/GraphicsMagick-VERSION.tar.gz
Extract the archive and move into the folder.
tar -xzvf GraphicsMagick-VERSION.tar.gz
cd GraphicsMagick-VERSION
Compile and Install
Configure, compile and install into /usr/local/mac-dev-env/graphicsmagick-VERSION
.
./configure CC=clang \
LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include" \
--prefix=/usr/local/mac-dev-env/graphicsmagick-VERSION
make
make install
Create a symbolic link to /usr/local/graphicsmagick
.
ln -s mac-dev-env/graphicsmagick-VERSION /usr/local/graphicsmagick
Shell
Execute the following lines to update your Bash startup script.
echo 'export PATH=/usr/local/graphicsmagick/bin:$PATH' >> ~/.bash_profile
Load the new shell configurations.
source ~/.bash_profile
Verify the Installation
Verify that you have successfully installed GraphicsMagick.
gm version
To see the list of supported image formats.
gm convert -list formats