Contents

Additional required libraries

First we need some additional libraries in order to enable ImageMagick to deal with other image formats.

JPEG image format

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 

Prepare jpeg-9 compilation


 mkdir ~/src
 cd ~/src
 tar xvzf ../Downloads/jpegsrc.v9.tar.gz

Build jpeg-9 tools and library

 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

Install jpeg-9 tools and librar under /usr/local

 sudo make install

PNG file format Support


In order to deal with the PNG image format download the latest library from the official PNG reference library

Download and Prepare libpmg compilation


Build the PNG library

 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

Install the PNG library under /usr/local

 sudo make install

Build ImageMagick from source under OS X


Download and Prepare ImageMagick compilation



Build ImageMagick




 convert 007a.jpg 007b.png

007a.jpg
007b.png
Status: Published Date: 2014-10-15 00:23:19 +0200 (Mi, 15 Okt 2014) Revision: 27

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.