9

I've written a fairly extensive script which manages images.

PHP imaging libraries strip meta data by default. 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.

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.

Orangeman555
  • 1,179
  • 2
  • 21
  • 45
  • following answer may help to solve your issue. http://stackoverflow.com/questions/1417138/making-iptc-data-searchable – Deepu Thomas May 11 '13 at 09:46

2 Answers2

1

After much research, the best I could find is this old script here:

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

It needs much updating, but generally works well.

Orangeman555
  • 1,179
  • 2
  • 21
  • 45
  • That's true , I have been in search for this. Although its a very old library, works fine on PHP 5.4. May be it should be forked to new functions and methods. Many thanks for the link. – Clain Dsilva Dec 20 '13 at 14:24
0

PHP has some IPTC functionality by default:

  • with getimagesize() you can get additional info about images,
  • with iptcparse() you can parse IPTC data from info (which comes from getimagesize()),
  • with iptcembed() you can embed IPTC data into a jpeg file.
pozs
  • 34,608
  • 5
  • 57
  • 63
  • 2
    Yes, but I'm looking for a library which simplifies this. Those functions are quite finicky when it comes to keywords and such. – Orangeman555 May 11 '13 at 09:06