$image = imagecreatefromjpeg("redblueH.jpeg");
$backcolor = imagecolorallocate($image, 255, 255, 0);
$rotated_image = imagerotate($image, 45, $backcolor);
header("content-type: image/jpeg");
imagejpeg($rotated_image);
imagedestroy($image);
imagedestroy($rotated_image);
?>