I would like to display an image through a PHP script so that you have a normal img in html but with a source of a php script. This script would then open an existing png or jpg image and display that image through it.
I have been trying this code with no luck at present.
$img = imagecreatefrompng("logo.png");
header("Content-type: image/png");
imagepng($img);
imagedestroy($img);
No errors the image output is broken.
Thanks in advance.
<?php? - Oliver Charlesworth