EXIF/JPEG metadata as plugin

Discussion corner for Developers of Serendipity.
Post Reply
surrim
Regular
Posts: 9
Joined: Wed Jan 06, 2021 5:34 pm

EXIF/JPEG metadata as plugin

Post 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.
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: EXIF/JPEG metadata as plugin

Post 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?
Post Reply