|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-05 13:22 UTC] derick@php.net
[2003-01-05 13:51 UTC] tularis@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 20:00:01 2025 UTC |
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'