From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.0 PHP Bug Type: GD related Bug description: Call to undefined function: imagecreatefromjpeg()
function resize($file) //voici la fonction qui redimensionne les images { $size = getimagesize("test/$file"); $dest_width = ($size[0]/6); //détermine la taille $dest_eight = ($size[1]/6); $src_img = imagecreatefromjpeg("test/$file"); $dst_img = imagecreatetruecolor($dest_width,$dest_eight); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0,$dest_width, $dest_eight, $size[0], $size[1]); // la fonction qui redimensionne les photos imagejpeg($dst_img, "test/mini_$file",100); imagedestroy($src_img); imagedestroy($dst_img); } resize("oras.jpg"); ?> Call to undefined function: imagecreatefromjpeg() './configure' '--with-apxs2=/newapache/bin/apxs' -- Edit bug report at http://bugs.php.net/?id=21436&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21436&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21436&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21436&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21436&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21436&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21436&r=support Expected behavior: http://bugs.php.net/fix.php?id=21436&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21436&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21436&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21436&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21436&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21436&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21436&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21436&r=gnused