Implement image identification buttons using regex.info/exif, google images and tineye

This commit is contained in:
Marcin Łabanowski 2012-12-23 04:38:20 +01:00
parent 9a33867e65
commit 3dae5a8bc7
3 changed files with 29 additions and 0 deletions

View file

@ -71,6 +71,17 @@
{{ post.filename }}
{% endif %}
{% endif %}
{% if post.thumb != 'file' and config.image_identification %}
,
<span class='image_id'>
{% if post.file|extension == 'jpg' %}
<a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a>
{% endif %}
<a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a>
<a href="http://www.tineye.com/search?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">t</a>
</span>
{% endif %}
)
</span>
</p>