I am trying to run this program, which should open a file, resize it, and output the resized file to disk.
The resized file is all black.
I am using PHP4.06 and GD > 2.0
Any clues?
<?
$quality = 100;
$dest_width = 367;
$dest_height = 275;
$src_width = 735;
$src_width = 550;
$src_img = ImageCreateFromJPEG("testin.jpg");
$dst_img = ImageCreateTrueColor($dest_width,$dest_height);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, $src_width, $src_height);
imagejpeg($dst_img, "testout.jpg");
imagedestroy($src_img);
imagedestroy($dst_img);
?>