Hi everyone,
I'm having problems using the imagecopyresampled(resized) function.
This is the code for getting the source:
$scr_img = imagecreatefromjpeg($_FILES['file']['tmp_name']);
I can get the width and height of $scr_img, however wen I try to resize it with:
imagecopyresampled($new_img,$scr_img,0,0,0,0,$new_w,$new_h,$src_w,$scr_h), I get an error saying "invalid image source".
also imagedestroy($scr_img) gives me the same message
the image file is a perfectly normal jpg image.
PLease HELP!!!