[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Revision into Exif

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-26 06:46:54 CET

On Dec 25, 2006, at 12:18, Ramanathan Muthaiah wrote:

>> Is there any way to put the revision number of such a picture into
>> the exif data?
>>
>> I heard about hook scripts, but I did not find something that does
>> the job...
>
> This looks to me, more about the possibility of editing EXIF data than
> about Subversion.
>
> AFAIK, it should be possible to edit EXIF data. A quick Google search
> on 'EXIF data + editor" returned 1,060, 000 results.
>
> With a custom hook script, it should be possible to wrap such EXIF
> data editors as per your needs.

Hook scripts are not relevant to the question. The type of script you
seem to be talking about would need to modify the image EXIF data,
but a hook script must not modify the data in the transaction.

Remo, you would need to edit the EXIF data to include the $Rev:$
keyword, and also add the property svn:keywords=Rev. You would need
to do this manually for every file which should have this
translation. Since we're talking about binary files (images) here,
you must ensure that Subversion does not change the length of the
data when it replaces the keyword. Therefore, you must use the fixed-
width version of the $Rev:$ keyword, which is written "$Rev::
$" (without quotes). I don't know if this is in The Book yet but it's
described in the source code comments, which are excerpted here:

http://svn.haxx.se/users/archive-2005-07/0819.shtml

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 26 06:56:59 2006

This is an archived mail posted to the Subversion Users mailing list.