mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
create separated exif metadata table for files
This commit is contained in:
@@ -1068,4 +1068,21 @@ if (! function_exists('replace_occurrence')) {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if(! function_exists('format_gps_coordinates')) {
|
||||
/**
|
||||
* Format GPS coordinates
|
||||
*/
|
||||
function format_gps_coordinates($coordinates, $ref)
|
||||
{
|
||||
if($coordinates && $ref) {
|
||||
|
||||
return
|
||||
explode('/',$coordinates[0])[0] . '°' .
|
||||
explode('/', $coordinates[1])[0] . "'" .
|
||||
substr(explode(',', $coordinates[2])[0], 0, 5) / 1000 . '"' .
|
||||
$ref;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user