I use the imagic extension. I have an $image_obj object. I can just echo it but it makes it look like random number of characters unless I put:
$Obj_img->setImageFormat("png");
header("Content-Type: image/png");
echo $image_obj;
Is there way to actually put it like this:
echo "<html>
<body>
this is my image: {$image_obj}
</body>
</html>";
I know you can do
echo "this is my image <img src="raw:{$image_obj}" />
but is there any other way without saving document to a file?
Make an
image.phpscript that generates the image, and point to it inside your html: