note 23529 deleted from ref.image by victor
| From: | victor@php.net | Date: | Mon, 09 Dec 2002 18:39:40 +0000 |
| Subject: | note 23529 deleted from ref.image by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40598@lists.php.net to get a copy of this message | ||
After finally getting the GD 2.x lib to compile into Php and work with Apache I did some tests and
then found a link to some code that uses Imagemagick and the system() call. Imagemagick won hands
down in quality produced. There is no speed difference that I can tell with the naked eye :)
It's nice that Php created functions with GD in mind and I don't know what the deal is
with doing the same with Imagemagick but it would have saved me a lot of hours of searching and
compiling if I would have known that Imagemagick could produce thumbnails without all the hassle of
upgrading the GD lib.
Still, I have to thank all of those that left comments in all of these pages so that I could do it
all on my own! Without subjecting our company to a fee :P
Here is the website link that got me started with the
Imagemagick: http://www.snipe.net/geek/toolz/imagemagick.php?show_source=yes
and here is the message contents that finally got my GD 2.x lib to work with Php
---------the next few lines are copied from the guru that first wrote them----
0. Make sure you have libjpeg and libpng installed
1. Grab GD-2.0.1.
2. tar zxvf gd-2.0.1.tar.gz
3. cd gd-2.0.1
4. Edit the Makefile and change the LIBS line to be:
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
5. make libgd.a (don't need to do a make install)
6. Now build PHP using these flags:
--with-gd=/home/<you>/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f')
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-zlib