PHP:输出<img>标签中的水印图片
PHP: Output the watermarked image in <img> tag
我已经成功地为 PHP Manual 中提到的图片添加了水印。它使用 header('Content-type: image/png');
输出 image
。我需要做的是在 html
<img>
标签中输出图像。我怎样才能做到这一点?有什么想法吗?
<img src="/url/to/your/image-making-file-goes-here.php" alt="Image created by php" />
您可能也应该为此使用一些缓存。
我已经成功地为 PHP Manual 中提到的图片添加了水印。它使用 header('Content-type: image/png');
输出 image
。我需要做的是在 html
<img>
标签中输出图像。我怎样才能做到这一点?有什么想法吗?
<img src="/url/to/your/image-making-file-goes-here.php" alt="Image created by php" />
您可能也应该为此使用一些缓存。