How to install a license for images on my site in Google Maps?

Google Images has the ability to filter images based on a license.

License filter screenshot

Each image on my website contains a details page where I have the following link to indicate a license:

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/deed.en_US" target="_blank">CC-BY</a>

This is a modified version of the sample code from Creative Commons - select a license .

However, I see images that Google has indexed, since I added this code, it does not appear when I select the license filter.

+4
source share
1 answer

You need to wrap it around a div with the about attribute. Here is an example that Google provides:

<div about="image.jpg">
  <img src="image.jpg" alt="" />
  <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution Share-Alike 3.0</a>
</div>

So in your case:

<div about="image.jpg">
  <img src="image.jpg" alt="" />
  <a rel="license" href="http://creativecommons.org/licenses/by/4.0/deed.en_US" target="_blank">CC-BY</a>
</div>

: https://www.youtube.com/watch?v=quyhasVn2jw, http://googlesystem.blogspot.com/2009/08/simple-way-to-specify-image-licenses.html

+3

Source: https://habr.com/ru/post/1533492/


All Articles