简体   繁体   English

IPTC数据管理库

[英]IPTC Data Management Library

I've written a fairly extensive script which manages images. 我写了一个相当广泛的脚本来管理图像。

PHP imaging libraries strip meta data by default. PHP映像库默认情况下剥离元数据。 So embedded data (like keywords, descriptions, author, etc) are gone. 所以嵌入式数据(如关键字,描述,作者等)已经消失。 I've written a fairly extensive image management system, but sadly the IPTC management is still lacking much. 我写了一个相当广泛的图像管理系统,但遗憾的是IPTC管理仍然缺乏。

In the past I've written much of my own functions, but now I'd like to use a library which: 在过去,我写了很多自己的函数,但现在我想使用一个库:

  1. Easily retrieves info, typically into an array. 轻松检索信息,通常是数组。
  2. Can embed info easily. 可以轻松嵌入信息。

Having looked around, I can't seem to find a modern or complete package which: 环顾四周,我似乎无法找到一个现代或完整的包:

  1. Is reasonably lightweight. 相当轻巧。
  2. Is geared toward this specifically. 是专门针对这个。

If anyone knows any classes or sets of functions available somewhere, that would be great. 如果有人知道某处可用的任何类或功能集,那就太棒了。 I've looked everywhere and cannot find one. 我到处寻找,找不到一个。

Thanks for any help. 谢谢你的帮助。 I have searched and cannot find a decent library. 我搜索过,找不到像样的图书馆。

After much research, the best I could find is this old script here: 经过大量研究,我能找到的最好的是这个旧脚本:

http://www.ozhiker.com/electronics/pjmt/index.html http://www.ozhiker.com/electronics/pjmt/index.html

It needs much updating, but generally works well. 它需要大量更新,但通常效果很好。

PHP has some IPTC functionality by default: PHP默认具有一些IPTC功能:

  • with getimagesize() you can get additional info about images, 使用getimagesize()您可以获得有关图像的更多信息,
  • with iptcparse() you can parse IPTC data from info (which comes from getimagesize() ), 使用iptcparse()您可以从info(来自getimagesize() )解析IPTC数据,
  • with iptcembed() you can embed IPTC data into a jpeg file. 使用iptcembed()您可以将IPTC数据嵌入到jpeg文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM