Issue
I have created an in image using PHP. I want to change the body background color created by php imagick. For more clarification, I have added code and output image.
header('Content-Type: image/png');
$image = new Imagick('d.png');
$image->setImageFormat("png");
echo $image;
Solution
It can be easily solved using two seperate file html and php.
page.html
<html>
<body>
<img src="image.php" alt="" />
</body>
</html>
image.php
<?php
header('Content-Type: image/png');
$im = new Imagick('image.png');
$im->setImageFormat("png");
echo $im;
?>
Answered By - Mouri Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.