•  » Engine
  •  » event hook for synchronizing metadata in piwigo 2.4.4

#1 2012-10-15 23:24:32

RMM
Member
2011-12-09
23

event hook for synchronizing metadata in piwigo 2.4.4

I want to write the creation date of my video files to the piwigo_image table so they appear in the correct sorting order. This could be done with just a few lines of code using the imagick extension (or in my case even just using the file modification date).
But I read through the piwigo code and it seems that there is no hook available for the metadata updating functions, there's just one to display the metadata...
any plans to ever implement such a hook?
or will I have to use a manually called function?

Offline

 

#2 2012-10-16 07:37:58

rvelices
Former Piwigo Team
2005-12-29
1960

Re: event hook for synchronizing metadata in piwigo 2.4.4

you could use format_exif_data event ...

Offline

 

#3 2012-10-18 23:17:49

RMM
Member
2011-12-09
23

Re: event hook for synchronizing metadata in piwigo 2.4.4

no. unfortunately I can't...
This hook only gets called for files with valid exif informations (propably only jpeg) since the exif data get read before by the php funcion read_exif_data which fails on other files...

Offline

 
  •  » Engine
  •  » event hook for synchronizing metadata in piwigo 2.4.4

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact