php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21436 Call to undefined function: imagecreatefromjpeg()
Submitted: 2003-01-05 13:15 UTC Modified: 2003-01-05 13:50 UTC
From: marius at ee dot utt dot ro Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
 [2003-01-05 13:15 UTC] marius at ee dot utt dot ro
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'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-05 13:22 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.


 [2003-01-05 13:51 UTC] tularis@php.net
make sure php is configured WITH the gd library...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 05:01:31 2024 UTC