From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Embedding and extracting license/author information in an image file Date: Tue, 08 Dec 2015 06:06:15 -0500 Message-ID: References: <87si3ege68.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6G6A-0003u5-Ii for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 06:06:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6G65-0003N0-PQ for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 06:06:22 -0500 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:35330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6G65-0003Mu-IM for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 06:06:17 -0500 Received: by qgec40 with SMTP id c40so12348554qge.2 for ; Tue, 08 Dec 2015 03:06:17 -0800 (PST) In-reply-to: <87si3ege68.fsf@free.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Julien Cubizolles Cc: emacs-orgmode@gnu.org Julien Cubizolles writes: > I often include images in my org documents and would like to properly > cite the license, and/or author. This is usually done manually in a citation in the caption I think. >I was thinking that this could be > simplified by: > > * embedding the license/author information in some metadata of the jpg > or png file (it seems that some standard called xmp can be used to > embed data in png/jpg [fn:1]) preferably using some emacs tool Making the xml would not be too difficult in emacs, but I guess you would have to call some external program to insert xmp into the images. > > * getting org to add a footnote with this information when linking to a > file with this kind of information. This would not work reliably. I could imagine an insert figure link which would check for the data and do that, or perhaps a post-insert-link hook function, but neither of these would work if you simply type in a link. What should happen with images that don't contain the data? > > Could it be done? Do you know of an emacs package providing read/write > access to this metadata? None I know of. I looked at something similar for pdf, but did not find anything but external programs. > > Footnotes: > > [fn:1] https://en.wikipedia.org/wiki/Extensible_Metadata_Platform -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu