The Auto suggest typeahead conundrum .net mysql , and the unreliable connection state.

Installing Image Magick, Magick Wand, PHP, FreeType

08 Nov 2006

This is largely by another fellow from

here , I added some updated version #'s, as well as freetype support.


I did the build in tmp,

Get your ImageMagick wget ftp://ftp.imagemagick.net/pub/ImageMagick/ImageMagick-6.2.9-8.tar.gz

Get your delegates

wget wget ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/jpegsrc.v6b.tar.gz wget wget ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/jasper-1.701.0.zip wget ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/libpng-1.2.12.tar.gz wget http://www.peregrinehw.com/downloads/gd/ghostscript-8.15.tar.bz2 wget http://www.peregrinehw.com/downloads/gd/ghostscript-fonts-std-8.11.tar.gz

extract them all.

copy the ghostscript fonts to the default dir. mkdir /usr/local/share/ghostscript/fonts

cp ./ghostscript-fonts-std-8.11/* /usr/local/share/ghostscript/fonts/

make an 'ext' directory in ImageMagick mkdir ./ImageMagick-6.2.9-8/ext

copy all the delegate folders there, give them nicer names like jpeg jasper libpng ghostscript

./configure and build jpeg copy the jpeg folder into the ghostscript folder

./configure and build ghostscript

./configure and build jasper

./configure and build and install libpng

i use a text file for my configure params for ImageMagick cd /tmp/ImageMagick-6.2.9-8/

touch myconf

this is the contents of MY configuration ./configure  --with-windows-font-dir=/usr/share/fonts/monotype/TrueType --enable-shared --with-exif=yes --enable-lzw=yes --with-gs-font-dir=/usr/local/share/ghostscript/fonts -without-x CPPFLAGS='-I/tmp/ImageMagick-6.2.9/ext/jpeg -I/tmp/ImageMagick-6.2.9/ext/libpng -I/tmp/ImageMagick-6.2.9/ext/jasper' LDFLAGS='-L/tmp/ImageMagick-6.2.9/ext/jpeg -L/tmp/ImageMagick-6.2.9/ext/libpng -L/tmp/ImageMagick-6.2.9/ext/jasper -lfreetype'

you can see where you point ImageMagick at the various delegates

so, then I configure ./myconf > configure.log

after that happens, inspect the configure.log  , with any luck it'll look like this, the only thing i didn't get was jpeg2000 (thats jasper) , I'm not to worried about it, but possibly if you did a make build on jasper before configuring image magick it would work.


Shared libraries  --enable-shared=yes        yes Static libraries  --enable-static=yes        yes Module support    --with-modules=yes        yes GNU ld            --with-gnu-ld=yes        yes Quantum depth     --with-quantum-depth=16    16

Delegate Configuration: BZLIB             --with-bzlib=yes        yes DPS               --with-dps=yes        no FlashPIX          --with-fpx=no        no FontConfig        --with-fontconfig=no        no FreeType          --with-freetype=yes        yes GhostPCL          None                pcl6 (unknown) Ghostscript       None                gs (8.15) Ghostscript fonts --with-gs-font-dir=/usr/local/share/ghostscript/fonts    /usr/local/share/ghostscript/fonts/ Ghostscript lib   --with-gslib=yes        no Graphviz          --with-gvc=yes        no JBIG              --with-jbig=yes        no JPEG v1           --with-jpeg=yes        yes JPEG-2000         --with-jp2=yes        no LCMS              --with-lcms=yes        no Magick++          --with-magick-plus-plus=yes    yes PERL              --with-perl=yes        /usr/bin/perl PNG               --with-png=yes        yes RSVG              --with-rsvg=no        no TIFF              --with-tiff=yes        no Windows fonts     --with-windows-font-dir=/usr/share/fonts/monotype/TrueType    /usr/share/fonts/monotype/TrueType/ WMF               --with-wmf=yes        no X11               --with-x=no            no XML               --with-xml=yes        yes

ZLIB              --with-zlib=yes        yes

then do make && make install , walk away, it takes about forever..

that should do it! try this out echo "This is a test" | convert -background yellow -page 200x50 text:- mediocreimage.jpg