summaryrefslogtreecommitdiff
path: root/templates/post_reply.html
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2012-12-23 04:38:20 +0100
committerMarcin Łabanowski <marcin@6irc.net>2012-12-23 04:38:20 +0100
commit3dae5a8bc7093ee642f4c10b77f7c16009536171 (patch)
tree7c831a531059b64c17652037b66f6a2ed561f274 /templates/post_reply.html
parent9a33867e6579c955d71e4e62923aa4faf27e450d (diff)
Implement image identification buttons using regex.info/exif, google images and tineye
Diffstat (limited to 'templates/post_reply.html')
-rw-r--r--templates/post_reply.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/post_reply.html b/templates/post_reply.html
index f50e392e..318f4758 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -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>