ZenphotoCMS Forum
new_image filter not called on "refresh metadata" - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: new_image filter not called on "refresh metadata" (/thread-5155.html)



new_image filter not called on "refresh metadata" - danielsbrewer - 2009-05-08

I'm writing a plugin that takes metadata from a file and adds it to an image/video. I have based this on the filter-new_objects.php plugin. This works well when I am adding new videos/images, but I would also like the functions to be called when I select "refresh metadata" from the edit albums page. So a couple of questions:

  1. Is the new_image filter called on a "refresh metadata"?
  2. If not does the equivalent of an "update_image" filter exist?

Thanks




new_image filter not called on "refresh metadata" - sbillard - 2009-05-08

The answer to both questions is NO. But probably the answer to #2 should be yes, so we will add that. Should be in tonights nightly build.

BTW, all the filters are described in the plugin architecture document: http://www.zenphoto.org/2008/04/zenphoto-plugin-architecture/




new_image filter not called on "refresh metadata" - danielsbrewer - 2009-05-09

That's great, many thanks