Page 1 of 1

EXIF/JPEG metadata as plugin

Posted: Sat Jan 16, 2021 4:16 am
by surrim
When I tried to implement metadata for *.gpx files I found out that in function "serendipity_getMetaData()" (function_images.inc.php) is something like

Code: Select all

if (!$serendipity['mediaExif']) {
    return $ret;
}

// about 60 lines of image metadata code

serendipity_plugin_api::hook_event('media_getproperties', $ret, $file);
I think it would be great to move all the image metadata code and depending configurations to an extra plugin - at least for the next bigger s9y release. I don't want to store all the exif data on my homepage, but I need some *.gpx metadata like bounds (min/max latitude/longitude) for the OSM plugin.

Re: EXIF/JPEG metadata as plugin

Posted: Sat Jan 16, 2021 12:24 pm
by onli
We recently changed parts of how the Media Library and thus the image functions work, but those were limited changes. A lot of the code there hasn't been touched in a long while - so in general, work invested there is very welcome.

There is a but: I do not see yet what's the advantage of a plugin compared to code in a function would be? How would that help you? You want to be able to uninstall it?