PHP + GD with jpeg and ttf enabled on FreeBSD 5.3 and Apache 1.3



Hello

Does anybody out there have PHP + GD graphics including jpeg and
TrueType (ttf) fonts running on FreeBSD 5.3 + Apache 1.3.nn ?

I've trying to configure PHP with GD on my server box using the
following configure_php file

#!/bin/sh
../configure \
--with-mysql=/usr/local/mysql-standard-4.0.24-unknown-freebsd4.7-i386 \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gd \
--with-png-dir=/usr/local/include/libpng \
--with-jpeg-dir=/usr/local/include \
--with-zlib-dir=/usr/src/php/php-5.0.4/ext/zlib \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/include/freetype2/freetype

Everything seems to run OK going through
../configure
make
make install

After restarting Apache, I can't see jpeg or ttf showing up in
phpinfo()

I have 'extension=gd.so' in php.ini
Do I need any other extensions specified there?

I'd be much obliged if anyone who has this configuration (or something
like it) running OK could point out any obvious error(s) in the above
or point me towards a walk-through install doc, if such a thing exists.

I've tried rebuilding PHP through the ports tree using 'portupgrade',
but that didn't work either.

Many thanks for any help

Charles Brewster

.



Relevant Pages

  • Re: Creating captions for jpegs
    ... extracted by another program like PHP and displayed with the image. ... little) and without any server side programming. ... Does a jpeg has EXIF data associated with it? ... If yes, can a caption be ...
    (comp.graphics.apps.photoshop)
  • Re: Show image img src=img.php?img=1.jpg help
    ... When i do that the image type is detected correctly as jpeg, ... But earlier you said this really is a bmp, ... I haven't actually tried mixing session_startwith header(); ...
    (comp.lang.php)
  • Re: Show image img src=img.php?img=1.jpg help
    ... When i do that the image type is detected correctly as jpeg, ... Just changing the name or header is not going to change the real file type. ... However, what should work is to use an img tag in this file, pointing at a file containing your PHP code. ...
    (comp.lang.php)
  • Re: JPG Not supported on my server, but GDlib enabled?
    ... then you should compile your GD with jpeg enabled option and then compile ... you can compile Apache and PHP. ... I have root access and have some php/mysql/apache installation experience ...
    (php.general)
  • Re: [PHP] corrupt image when viewed using PHP
    ... You can find different solutions at the PHP Manual web site; ... We have written an app in PHP4 that receives images from mobile phones that are taken with the camera, we have found a problem that some of the images ... are corrupt and we have determined that it is because of Nokia VGA cameras that have sent the image, basically the jpegs are fine but the extra info that comes with the jpeg is corrupt, therefore PHP wont open the image, with all other photos its fine. ... We also found another possible solution being that we use ImageMagick to convert the jpeg to a jpeg, ...
    (php.general)