Fixed image identification

This commit is contained in:
Jano Slota 2014-05-15 17:05:13 +02:00 committed by czaks
parent c67f4ba897
commit ecbf1ff24c

View File

@ -1,14 +1,14 @@
{% if post.thumb != 'file' and config.image_identification %} {% if file.thumb != 'file' and config.image_identification %}
, ,
<span class='image_id'> <span class='image_id'>
{% if config.image_identification_imgops %} {% if config.image_identification_imgops %}
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a> <a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}">io</a>
{% endif %} {% endif %}
{% if config.image_identification_exif and post.file|extension == 'jpg' %} {% if config.image_identification_exif and file.file|extension == 'jpg' %}
<a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a> <a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">e</a>
{% endif %} {% endif %}
{% if config.image_identification_google %} {% if config.image_identification_google %}
<a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a> <a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">g</a>
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}