Not logged in. · Lost password · Register
Forum: General Help and Support Development RSS
[SOLVED]How to access metadata of media files?
Avatar
LarsDW223 #1
Member since Sep 2014 · 428 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED]How to access metadata of media files?
I got a hopefully simple question: how can I access metadata of media files?

I can query metadata of pages using p_get_metadata(). I called the function for media files and also tried adding media: to the page/media id but that did not work which means the function did not return any data.

So I wonder if I have to call a different function or use a different path.

Thanks for any help in advance.
This post was edited on 2018-05-22, 17:42 by LarsDW223.
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 459 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,

Media don't have metadata, only history (if enabled in config). Browse your data/media_meta directory, and you will find only .changes files and no .meta file.
Avatar
grosse #3
Member since Nov 2014 · 6 posts · Location: Berlin, Germany
Group memberships: Members, Wiki Managers
Show profile · Link to this post
Have a look at tpl_img_meta() in inc/template.php . This method is also called from the detail.php of many templates. Also the spatialhelper can extract coordinates from images. See https://www.dokuwiki.org/plugin:spatialhelper
Avatar
LarsDW223 #4
Member since Sep 2014 · 428 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
@schplurtz, @grosse: thanks for the answers.
For now I am just interested in the user who created the image and that seems to be stored in the .changes files. In the entries marked with 'C'.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-21, 07:05:47 (UTC +02:00)