Hello everyone.
This function should resize e.g. 8.jpg to 8tn.jpg.
Instead of this it creating the tmp pic but with no size.
Any ideas way?
function HandlePix($pic,$CountNum){
$upload_path = "q/";
$filearray = explode(".",$pic);
$extension = end($filearray);
$pictn = $CountNum.'tn.'.$extension;
$tmptn = $CountNum.'tmp.'.$extension;
// copy($upload_path.$pic,$upload_path.$pictn);
$size = getimagesize($upload_path.$pic);
$tmppath = $upload_path.$tmptn;
$tnpath = $upload_path.$pictn;
$bgpath = $upload_path.$pic;
system("djpeg $bgpath >$tmppath");
system("pnmscale -xy 250 200 $bgpath | cjpeg -smoo 10 -qual 50 >$tnpath");
}
I found this scripthere:
(http://www.phpbuilder.com/forum/archives/2/2001/6/1/138847)
but I cannot make it work.
I have php 4.2.2 winnt and Apache 1.3