How to license your own images with Microformats and RDFa

February, 5 in Tip. Last modified: 2010-02-08.

If you own the images used in your posts, you may want to license them with and notify it to : now you can do so via , instead waiting for auto-discovery.

First of all, I suggest you to have a look to my tip on get ready for , where you can find useful information on enabling them for your blog. Once you have changed your , you should go on reading.

This method is valid for : of course, you could specify other license types; Creative Commons is just an example (and it allows you to add a RDFa specification).

Below, I show the Google’s standard way to implement licenses — on blogs could be preferable to use an inline alternative I’ll explain after:

<div about"/path/to/image.ext">
<img src="/path/to/image.ext"/>
<a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" rel="license">Creative Commons Attribution - NonCommercial - No Derivatives Works 3.0</a>
</div>

This is what Peter Linsley explained on the official Google Webmaster Central’s blog: you can watch the related video on YouTube too. I’ve just moved the rel attribute in the end to fit the ’s standards.

Anyway, blog posts should contemplate paragraphs and this markup could break your layout. So I used these attributes on different elements to avoid issues.

<img about="/path/to/image.ext" src="/path/to/image.ext" href="http://creativecommons.org/licenses/by-nc-nd/3.0/" rel="license"/>

The about attribute could be inserted in almost any element and the href attribute isn’t “clickable” so you may include the image in an anchor, if you want to.

My way applies especially if you use WordPress’ thumbnails: providing a working link to the license’s text isn’t mandatory (and search engines will do it for you).

Short URL: http://wp.me/pKXtD-1S · Tags: , , , , , , , , ,

Share this post

delicious · Digg · Facebook Share · Google Buzz · Su.pr

closed

Syndicate Feed (941+)

Top