Hello,
I'm writing a simple code to output the image to the browser with imagejpeg(). When I run the code, no image is being displayed, all i get is the text "http://localhost/modifyimage.php" (modifyimage.php is the file that contains the code).
$image=imagecreatefromjpeg('pic1.jpg');
imagefilter($image, IMG_FILTER_GRAYSCALE);
header("Content-type:image/jpeg");
imagejpeg($image);
I can save the image to the correct folder using imagejpeg($image, $newfile) but can't output it to the browser. Am I missing something obvious? Any help would be appreciated, thx