Forums / Extensions / Extend EZ Publish to store XMP metadata into ezimage object

Extend EZ Publish to store XMP metadata into ezimage object

Author Message

Christian BELLET

Tuesday 15 April 2008 1:01:25 am

Hello,
This is my first post on this forum. I could not find any topic regarding this problem.
I'm running EZ publish 4.0 on a debian server. I installed a PHP extension in order to get the XMP metadatas stored in media files ( http://www.alexander-block.net/eng/Business/eZ-Systems/XMP4PHP ).
I would like to extend the image class and add more fields so I can store the XMP metadata into these fields the first time I create an object (image, file...).
All I need to know is how to implement a kind of hook that would read the XMP metadatas from the original file (upload new file) and then have the normal way of storing the data in the EZ database. Do I have to create a new extension, a new datatype or extend the ezimage datatype ?
It's really important for me to store these XMP into the database because i'd like to use the EZ search engine to find the XMP metadata.

Thanks for your help,

Christian

Felix Laate

Tuesday 15 April 2008 1:37:14 am

Hi there,

I'm sure there a better ways to do this, but I would suggest that make your own file-datatype and file-class. You can copy much code from the file datatype comming with ezp, and add functionality to extract the XMP-data and add it to the object it vreates upon uploading.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Kristof Coomans

Tuesday 15 April 2008 7:42:50 am

Hi guys

There exists something like image analyzer extensions. However, I never used it before, so can't tell you more about it.

Take a look in image.ini and at lib/ezimage/classes/ez.*imageanalyzer.php

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Alexander Block

Tuesday 20 May 2008 2:17:32 am

Hi Christian,

as we are currently developing an eZ Publish based solution for dealing with XMP meta data I can tell you, that this is a very complex issue. We have created a new data type, a pretty huge extension and use a modified version of ezfind to query the XMP meta data stored in that datatype. If you need more information about this topic feel free to contact me. It would be nice to get some more detailed information from your side (e.g. where do you want to use this kind of solution - your private homepage or the website of a multi-national company?)

Kind regards,

Alex

Josh Bair

Tuesday 27 January 2009 12:51:20 pm

Any updates about this?

What about reading in the XMP fields and values and storing them in a matrix within an image object?

Alexander Block

Friday 08 May 2009 1:01:30 pm

Do I understand it correctly, you want to read the XMP meta data from an image and store it in an eZ Publish matrix datatype? This would not be required as the XMP datatype would make the XMP meta data available in a much better way.

Jean-Luc Nguyen

Tuesday 12 May 2009 6:20:36 am

Alors Christian, on fait du eZ ? =)

http://www.acidre.com