#20096 [NEW]: Call to undefined function: imagecopyresampled()
| From: | kevincarlson at houston dot rr dot com | Date: | Fri, 25 Oct 2002 19:22:16 +0000 |
| Subject: | #20096 [NEW]: Call to undefined function: imagecopyresampled() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-23339@lists.php.net to get a copy of this message | ||
From: kevincarlson@houston.rr.com
Operating system: Slackware Linux 8.0/8.1
PHP version: 4.3.0-pre1
PHP Bug Type: GD related
Bug description: Call to undefined function: imagecopyresampled()
$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 bug report at http://bugs.php.net/?id=20096&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20096&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20096&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20096&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20096&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20096&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20096&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20096&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20096&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20096&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20096&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20096&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20096&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20096&r=isapi