Links: Homepage | Downloads
Dependencies: LibJPEG | LibPNG | LibTIFF
Version: 1.3.18
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 --location --output GraphicsMagick-VERSION.tar.gz 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/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/graphicsmagick-VERSION
make
make install
Create a symbolic link that points /usr/local/graphicsmagick
to /usr/local/graphicsmagick-VERSION
.
ln -s 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
To verify that you have correctly installed GraphicsMagick, execute the following command.
gm version
To see the list of supported image formats.
gm convert -list formats