I need some help copying images reducing them in size and placing them in a different folder. This is what I've got, but it doesn't seem to be working
header("Content-type: image/jpeg");
$background = imagecreatetruecolor(100, 60);
$foreground = imagecreatefromjpeg($locdir.$addfile);
imagecopyresampled($smlocdir.$background,$foreground, 0, 0, 0, 0, 100, 60, 350, 210);
imagejpeg($smlocdir.$background);
I thought that I could just use
imagecopyresampled($smlocdir.$file,$lglocdir.$file, 0, 0, 0, 0, 100, 60, 350, 210);
But, I guess not, I'm not sure why?
If anyone could help make this thing happen that would be awesome