This is a doc file to install a custom compiled GD, ImageMagick and Perl Interface for GD. In short, these products allow you to use the BiCubic filter in Perl which will produce FAR better thumbnails than the Lanczos filter which ImageMagick defaults to. It is produced by Kevin A. McGrail (kevin@mcgrail.com). URL: http://www.peregrinehw.com/downloads/gd/INSTALL Comments welcome via email! kevin@mcgrail.com NOTE: I use various versions of Redhat Linux, so persons using other distributions, beware. These instructions are tested on a Redhat 7.X i386 Installation. I also use a custom installed freetype v2.1.5 so that tar is included here as well! (I just untar, run ./configure --prefix=/usr/local, make and make install) #WGET, UNTAR & INSTALL THE VARIOUS SUPPORT DISTRIBUTIONS #CREATE A TEMP DIR FOR THE TAR FILES rm -rf /tmp/20030622GD/ mkdir /tmp/20030622GD/ cd /tmp/20030622GD/ #GET ALL THE FILES wget http://www.peregrinehw.com/downloads/gd/GD-Perl-2.17.tar.gz wget http://www.peregrinehw.com/downloads/gd/ImageMagick-6.1.3-7.tar.gz wget http://www.peregrinehw.com/downloads/gd/gd-2.0.33.tar.gz wget http://www.peregrinehw.com/downloads/gd/libexif-0.6.11.tar.bz2 #CLEAR OUT OLD SOURCE rm -rf /usr/src/GD-2.* rm -rf /usr/src/gd-2* rm -rf /usr/src/ImageMagick-5* rm -rf /usr/src/libexif-0* #UNINSTALL DEFAULT RPMS -- EXAMPLE ONLY -- use rpm -qa | grep -e ImageMagick -e gd to find out all the modules rpm -e gd gd-devel ImageMagick ImageMagick-c++ ImageMagick-c++-devel ImageMagick-perl ImageMagick-devel gnuplot #UNTAR THE PACKAGES cd /usr/src tar zxvf /tmp/20030622GD/GD-Perl-2.17.tar.gz tar zxvf /tmp/20030622GD/gd-2.0.33.tar.gz tar jxvf /tmp/20030622GD/libexif-0.6.11.tar.bz2 # UPDATED: 12-23-02 # UPDATED: 1-26-03 to GD 2.0.11 # UPDATED: 06-22-2003 to GD 2.0.15 # UPDATED: 10-12-2004 to GD 2.0.28 # UPDATED: 03-03-2005 to GD 2.0.33 # # HOMEPAGE: http://www.boutell.com/gd/ # # Install GD v2.0.33: cd /usr/src/gd-2.0.33/ ./configure make make check make install #IMPORTANT: Add /usr/local/lib to /etc/ld.so.conf file and run ldconfig --verbose # ADDED: 06-22-2003 v0.5.9 # UPDATED: 03-03-2005 to libexif v0.6.11 # # HOMEPAGE: http://prdownloads.sourceforge.net/libexif/ # # Install LibExif v0.6.11 cd /usr/src/libexif-0.6.11/ ./configure make make install ldconfig --verbose # UPDATED: 12-23-02 # UPDATED: 01-11-03 -- Upgraded to v5.5.3-2 # UPDATED: 02-01-03 -- Upgraded to v5.5.4-2 # UPDATED: 06-22-03 -- Upgraded to v5.5.7-9 # UPDATED: 10-03-03 -- Upgraded to v5.5.7-11 # UPDATED: 01-24-04 -- Upgraded to v5.5.7-15 # UPDATED: 03-03-05 -- Upgraded to v6.1.3-7 # # RANT: Upgrading ImageMagick is always a major task because they document so few of the changes. # Upgrading 5.5.4 to 5.5.7 broke Annotate from PerlMagick for me and took away exif support. # Found out they added a new library requirement for exif (above). Additionally, my 5.5.4 # didn't compile DPS support but 5.5.7 did. So I've specifically disabled DPS for fear of # what might occur. Anyway, I found the annotate problem went away if I used JPG or if I # designated an undercolor. # # HOMEPAGE: www.imagemagick.com # # Install ImageMagick v6.1.3-7 cd /usr/src tar xvfz /tmp/20030622GD/ImageMagick-6.1.3-7.tar.gz cd /usr/src/ImageMagick-6.1.3/ ./configure --with-perl=/usr/local/bin/perl --with-windows-font-dir=/usr/share/fonts/default/TrueType --enable-shared --with-exif=yes --enable-lzw=yes --with-dps=no make make install #PERLMAGICK SHOULD BE INSTALL AUTOMATICALLY #cd PerlMagick #perl Makefile.PL #make #make install ldconfig --verbose # UPDATED: 12-23-02 # UPDATED: 04-16-03 to 2.06 # UPDATED: 06-22-03 to 2.07 # UPDATED: 10-12-04 to 2.16 # UPDATED: 03-03-05 to 2.17 # # HOMEPAGE: http://search.cpan.org/author/LDS/ # # Install GD Perl Interface v2.17: cd /usr/src/GD-2.17/ perl Makefile.PL # NOTE: If you are using Math::Trig 1.01 or lower, it has a bug that causes a "prerequisite not found" warning to be issued. You may safely ignore this warning. # NOTE2: No longer interactive installation make make test make install #GET RID OF TEMP DIR FOR THE TAR FILES rm -rf /tmp/20030622GD/