resize an image
From: Alexandre Jaquet (no email)
Date: 12/29/04
- Next message: Daniel Tryba: "Re: read line from text file"
- Previous message: Alexandre: "Re: rename an image"
- Next in thread: Pedro Graca: "Re: resize an image"
- Reply: Pedro Graca: "Re: resize an image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Daniel Tryba: "Re: read line from text file"
- Previous message: Alexandre: "Re: rename an image"
- Next in thread: Pedro Graca: "Re: resize an image"
- Reply: Pedro Graca: "Re: resize an image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]