Saani
Saani

Reputation: 782

PHP: Output the watermarked image in <img> tag

I have successfully watermarked the image as mentioned in the PHP Manual. It uses header('Content-type: image/png'); to output the image. What I need to do is to output the image in html <img> tags. how can I accomplish that? any idea?

Upvotes: 0

Views: 94

Answers (1)

Niclas Larsson
Niclas Larsson

Reputation: 1317

<img src="/url/to/your/image-making-file-goes-here.php" alt="Image created by php" />

You should probably use some cache for this too.

Upvotes: 1

Related Questions