如何在Google图片中为我的网站上的图片设置许可证? [英] How do I set the license for images on my site in Google Images?
问题描述
Google图片可以选择根据许可过滤图片.
Google Images has an option to filter images based on license.
我网站上的每个图像都有一个详细信息页面,在该页面中,我具有以下链接来表示许可证:
Each image on my site has a details page, where I have the following link to denote the license:
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/deed.en_US" target="_blank">CC-BY</a>
它是知识共享-选择许可证中示例代码的修改版本.
It's a modified version of the sample code from Creative Commons - Choose a License.
但是,当我选择许可证过滤器时,我看不到Google自添加此代码以来已建立索引的图像.
However, I see images that Google has indexed since I added this code do not appear when I select a license filter.
推荐答案
您需要使用about属性将其包装在div周围.这是Google提供的示例:
You need to wrap it around a div with an about attribute. Here's 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>
所以在您的情况下:
<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
这篇关于如何在Google图片中为我的网站上的图片设置许可证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!