#20096 [Fbk->Bgs]: Call to undefined function: imagecopyresampled()

From: Date: Fri, 25 Oct 2002 20:10:32 +0000
Subject: #20096 [Fbk->Bgs]: Call to undefined function: imagecopyresampled()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23345@lists.php.net to get a copy of this message
ID: 20096 Updated by: sniper@php.net Reported By: kevincarlson@houston.rr.com -Status: Feedback +Status: Bogus Bug Type: GD related Operating System: Slackware Linux 8.0/8.1 PHP Version: 4.3.0-pre1 New Comment: Also --with-jpeg-dir=/usr/lib is incorrect. Correct option would be --with-jpeg-dir=/usr And there's no bug here. Previous Comments: ------------------------------------------------------------------------ [2002-10-25 14:35:49] sander@php.net If you configured 4.3.0-pre1 with the argument --with-gd, then PHP does not use the bundled libs. Any version after 4.3.0-pre1 will use the bundled libs by default, unless you specify a path to gd. Please try to configure 4.3.0-pre1 with the argument --with-gd=php or try a snapshot from http://snaps.php.net and configure with --with-gd. ------------------------------------------------------------------------ [2002-10-25 14:22:16] kevincarlson@houston.rr.com $im = @imagecreatefromjpeg ($imgname); if ($im==""): echo "Error opening $imgname<br>"; else: $th_im = @imagecreate (100, 100); $a = imagecopyresampled ($th_im, $im, 0, 0, 0, 0, 100, 100, imagesx($im), imagesy($im)); endif; header("Content-type: image/jpeg"); imagejpeg ( $th_im ); imagedestroy($im); Configured php with: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr --with-zlib --with-bz2 --enable-trans-sid --with-mcrypt --enable-exif --with-gd --with-jpeg-dir=/usr/lib The thing is that I've removed all prior installations of gd from my system, and am using the gd extension packaged with php. The imagecopyresized function works just fine. suggestions? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20096&edit=1

« previous php.bugs (#23345) next »