[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] PHP 4.3.0 w/ GD 2 on Raq4 - imagecreatefromjpeg() not working



-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Montz, James C.
(James Tower)
Sent: Thursday, January 09, 2003 8:26 AM
To: 'cobalt-users@xxxxxxxxxxxxxxx'
Subject: [cobalt-users] PHP 4.3.0 w/ GD 2 on Raq4 -
imagecreatefromjpeg() not working


Successfully got PHP 4.3.0 with GD 2, FreeType 2 installed and running, but
have 1 issue so far,

PHP will not recognize the imagecreatefromjpeg() function, as I receive the
following error:

Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/sites/site25/users/dev/web/combine.php on line 10

Imagecreatefrompng() does seem to work properly.

----------------------------------------------------

PHP Simple Image Test Code:

<?
$im = ImageCreateFromJPEG('image.jpg'); //create JPEG Image from a Source
file
ImageJPEG($im); // output to browser   
ImageDestroy($im); // destroy image pointer
?>


Packages Installed:
freetype-2.0.3-7.i386.rpm 
freetype2-2.0.1-ximian.1.i386.rpm 
freetype2-devel-2.0.1-ximian.1.i386.rpm 
freetype-devel-2.0.3-7.i386.rpm 
libjpeg-6b-16.i386.rpm 
libjpeg-devel-6b-16.i386.rpm 
libpng-1.0.14-0.7x.3.i386.rpm 
libpng-devel-1.0.14-0.7x.3.i386.rpm 
libstdc++-2.96-112.7.2.i386.rpm 

>From PLD Distro:
gd-2.0.1-7.i386.rpm 
gd-2.0.1-7.src.rpm 
gd-devel-2.0.1-7.i386.rpm 
gd-progs-2.0.1-7.i386.rpm 
gd-static-2.0.1-7.i386.rpm 

Following is my PHP Config:
./configure 
--prefix=/usr 
--with-apxs=/usr/sbin/apxs 
--with-exec-dir=/usr/bin
--with-libdir=/usr/lib
--with-zlib
--with-exif
--with-gd
--enable-gd-native-ttf
--with-jpeg 
--with-png 
--with-freetype-dir=/usr/include/freetype2 
--with-ttf 
--with-regex=system 
--with-dba 
--with-gdbm 
--with-mbstring 
--with-mbstr-enc-trans 
--with-gettext=/usr 
--with-interbase=shared 
--with-mysql=/usr 
--with-pgsql=shared 
--with-pdflib=shared 
--enable-ftp 
--with-ldap 
--with-imap-ssl 
--enable-xml 
--enable-trans-sid 
--enable-inline-optimization 
--enable-track-vars 
--enable-wddx=shared 
--enable-mm=shared 
--enable-magic-quotes 
--disable-debug 
--enable-safe-mode 
--with-config-file-path=/etc/httpd

--------------------------------------------------
________________________
James C. Montz    RHCE
Hosting Services Engineer
James Tower
Phone: (507)-344-5435
E-Mail: <mailto:jcmontz@xxxxxxxxxxxxxx>
<http://www.jamestower.com>
Hosting Services:  hosting@xxxxxxxxxxxxxx

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users








Hello,

Had the same problem..
Try to add this to the ./configure:

with-jpeg-dir=/usr

Andras Kende