I am doing this sequence:
$image_rsz = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($UploadName);
imagecopyresampled($image_rsz, $image, 0,0,0,0, $final_width, $final_height,
$width_orig,$height_orig);
and uploading the resized image. The resizing looks right, but the JPEG file has a black section appended to the right of the image that is the same height as the resized image, but about 2 1/2 times the width of the picture. Is there something that needs to be done to crop off this excess? The original image, prior to resizing, did not have this.
So, the result is the desired reduced size, PLUS an undesired black rectangle appended to the right. Any idea?
Thanks!