EXIF/JPEG metadata as plugin
Posted: 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
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.
Code: Select all
if (!$serendipity['mediaExif']) {
return $ret;
}
// about 60 lines of image metadata code
serendipity_plugin_api::hook_event('media_getproperties', $ret, $file);