Forgotten in its old age

by Aditya

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I want to publish my pictures with a CC-BY-NC license but I could not find a tutorial how store this information with my JPEG metadata.

Is there a best practice? Do services like Flickr, Google+ or Facebook read this information?

share|improve this question
3  
Creative Commons has guidance on the use of XMP metadata to store licensing information. (This isn't a complete answer because it doesn't address how online services use the information. It would also be nice to discuss how to enter the metadata in Lightroom or other tools.) wiki.creativecommons.org/XMP –  coneslayer May 7 '12 at 19:53
1  
I have a proof-of-concept (but working) Python script for this... would it be OT ;-)? –  Rmano Feb 21 at 23:19
    
@Rmano I love scripting, so do it! :-) –  Ethan Leroy Feb 22 at 0:05

3 Answers 3

up vote 2 down vote accepted

As @coneslayer notes, Creative Commons does indeed provide guidance for XMP information.

The main thing is to set xmpRights:UsageTerms to This work is licensed to the public under the Creative Commons Attribution-ShareAlike license http://creativecommons.org/licenses/by­sa/2.0/ verify at http://example.com/pdf­metadata.html

That "verify" link is optional and should be a web site explaining the licensing in more detail. If you have such a web page, you should also set xmpRights:WebStatement to that URL.

They also recommend duplicating xmpRights:UsageTerms into dc:rights, because some people might use that tag instead.

You also can and should set XMP properties using Creative Commons' own schema, which defines cc:license, cc:morePermissions (for possible other allowed uses), cc:attributionURL, and cc:attributionName.

share|improve this answer

If you are using Photoshop you can go to File > File Info - This will allow you to include copyright data in the JPEG Metadata.

I am not aware of how services like Flickr, Google or Facebook handle metadata so I cannot comment there.

share|improve this answer

I use this little script, which you can easily adapt. It need Python2.6 (does not work with Python3 because FWIK the pyexiv2 library has not a Python3 version). This come pre-installed with practically all linux distributions; you may need to add the package python-pyexiv2 in some of them. No idea on how to install on windows.

#! /usr/bin/python
# -*- coding: utf-8 -*-
#
import sys
import pyexiv2
#
fimage = sys.argv[1]
metadata = pyexiv2.ImageMetadata(fimage)
metadata.read()
my_name = "Romano Giannetti"
my_email = "romano.giannetti@gmail.com"
copyr = "(c) " + my_name + " <" + my_email + ">" + ", All Rights Reserved" 
#
# set exif: 
#
exif_a="Exif.Image.Artist"
exif_r="Exif.Image.Copyright"
metadata[exif_a]=pyexiv2.ExifTag(exif_a, my_name)
metadata[exif_r]=pyexiv2.ExifTag(exif_r, copyr)
#
# set XMP
#
key_auth="Xmp.dc.creator"
key_rights="Xmp.dc.rights"
metadata[key_auth]=pyexiv2.XmpTag(key_auth, (my_name, my_email))
metadata[key_rights]=pyexiv2.XmpTag(key_rights, copyr)
#
metadata.write()

I think is more or less self-explicative: if you need to change/add Xmp tags, you simply do

keytag_name="Xmp.tag.name"
metadata[keytag_name]=pyexiv2.XmpTag(keytag_name, "this is the tag content")
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.