How to compile ImageMagick on OS X
First we need some additional libraries in order to enable ImageMagick to deal with other image formats.
In order to deal with jpeg image format download the latest library from the 'Independent JPEG Group http://www.ijg.org/files/ :
e.g. jpegsrc.v9.tar.gz
mkdir ~/src
cd ~/src
tar xvzf ../Downloads/jpegsrc.v9.tar.gz
cd jpeg-9
./configure --prefix=/usr/local/
make
make test
Now some jpeg tools are under /usr/local/bin and the jpeg library is located at /usr/local/lib
sudo make install
In order to deal with the PNG image format download the latest library from the official PNG reference library
mkdir ~/src
cd ~/src
tar xvJf ~/Repository/Apps/ImageMagick/libpng-1.6.8.tar.xz
cd libpng-1.6.8
./configure --prefix=/usr/local/
make
make test
Now the png libraries are under library is located at /usr/local/lib
sudo make install
mkdir ~/src
cd ~/src
tar xvjf ../Downloads/ImageMagick-6.8.8-1.tar.bz2
cd ImageMagick-6.8.8-1
- Run the following command to confiure ImageMagick for compipaltion including out just build PNG and JPEG libraries
./configure --prefix=/usr/local/ CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib'
...
PNG --with-png=yes yes
JPEG v1 --with-jpeg=yes yes
make
.. and Install
sudo make install
password: ...
- Test: convert at JPEG to a PNG and open it in Preview
convert 007a.jpg 007b.png
Status: Published Date: 2017/06/05 14:13:05 Revision: 1.1
Copyright bei Andreas Haack (C) 2014.
Diese Seite wird so wie sie ist zur Verfuegung gestellt, ohne irgenweche Garantien der Verwendbarkeit fuer bestimte Zwecke. Die auf dieser Seiten angebrachten Links liegen ausserhalb der redaktionellen Verantwortung von Andreas Haack und es wird keine Haftung oder Garantie uebernommen. Die Seiten sind Copyright (c) 2014 von Andreas Haack. Kein Teil darf ohne die schriftliche Einverstaendnis von Andreas Haack veroeffentlicht werden.
The page is provided 'as is' , without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fit- ness for a particular purpose and non-infringement. In no event shall Andreas Haack be liable for any claim, damages or other liability. This page is copyrighted property of Andreas Haack. Copyright by Andreas Haack (c) 2014 . No part of this page may be published without written permission for Andreas Haack. A hyper-link may created to this page but NOT to the embedded elements of this page. It may be freely downloaded for private purpose only as long as it is unaltered.