kennygadams
Programmer
I'm trying to copy, resize and save an image to a new folder but nothing happens! Is the code below written incorrectly?
Thanks,
kennygadams
Code:
$source_image 'full path to the hi-resolution image.jpg';
$destination_image 'full path to the destination of the resized image.jpg';
$source_image_width = '3000';
$source_image_height = '2000';
$destination_image_width = '200';
$destination_image_height = '100';
imagecopyresampled($destination_image,$source_image,0,0,0,0,$destination_image_width,$destination_image_height,$source_image_width,$source_image_height);
Thanks,
kennygadams