tillbiskup / dokuwiki-caption

Caption plugin for dokuwiki displaying nice figure and table captions
GNU General Public License v2.0
3 stars 5 forks source link

Option to use image's metadata (IPTC/exif) in caption #24

Open jens62 opened 1 year ago

jens62 commented 1 year ago

Hi, it would be great to be able to use references to the image's metadata (IPTC/exif) , as provided by the media manager, in the caption.

The tags from detail.php could be used for this.

For example

<figure>
{{:Stuff:kuschelpanzer.jpg|cuddle tanks}}
<caption>@Iptc.Caption Photographed with @Exif.Model at @Exif.DateTime by @Exif.Artist</caption>
</figure> 
tillbiskup commented 1 year ago

Hi, Excellent idea. From your example, I assume the following idea for a general syntax:

Things that seem important to me when adding this functionality:

Currently, I'm rather busy with other things, but any pull requests or code ideas would be more than welcome.