resize an image

From: Alexandre Jaquet (no email)
Date: 12/29/04


Date: 29 Dec 2004 19:35:07 GMT

Hi does anybody know's what's wrong with the following code :

 if (($imgsize[0] > 250) || ($imgsize[1] > 200)) {
   $tmpimg = tempnam("/avatard", "MKUP");
   system("djpeg $file >$tmpimg");
   system("pnmscale -xy 250 200 $tmpimg | cjpeg -smoo 10 -qual 50 >$file");
   copy($file, "avatard/" . $nom_utilisateur.".jpeg");
   unlink($tmpimg);
}

image 're not resized :(

thanks in advance