通过 php 将元数据附加到新创建的图像?

发布于 2024-08-04 05:08:24 字数 153 浏览 6 评论 0原文

我有一个 php 脚本,可以为未登录的用户创建临时水印图像。原始图像包含我想保留的 IPTC(元数据)信息,但是,当应用水印并调用 imagejpeg 时,所有元数据都会被删除。

有什么想法如何在调用 imagejpeg 后维护元数据或重新应用元数据吗?

谢谢

I have php script that creates a temporary watermark image for users that are not logged in. The original image contains IPTC (metadata) information that I would like to retain, however, when the watermark is applied and imagejpeg is called, all metadata is removed.

Any ideas how I can maintain the metadata or re-apply metadata after imagejpeg gets called?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

芸娘子的小脾气 2024-08-11 05:08:24

这正是 iptcparseiptcembed 函数的用途。

This is just what the iptcparse and iptcembed functions are for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文