EXIF/JPEG metadata as plugin

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

EXIF/JPEG metadata as plugin

Post by surrim » Sat Jan 16, 2021 4:16 am

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.

User avatar
Posts: 2450
Joined: Tue Sep 09, 2008 10:04 pm

Re: EXIF/JPEG metadata as plugin

Post by onli » Sat Jan 16, 2021 12:24 pm

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