Added configurabe image identification
This commit is contained in:
parent
cd15458a32
commit
593560956c
@ -742,8 +742,12 @@
|
|||||||
// Display the file's original filename.
|
// Display the file's original filename.
|
||||||
$config['show_filename'] = true;
|
$config['show_filename'] = true;
|
||||||
|
|
||||||
// Display image identification links using regex.info/exif, TinEye and Google Images.
|
// Display image identification links using ImgOps, regex.info/exif and Google Images.
|
||||||
$config['image_identification'] = false;
|
$config['image_identification'] = false;
|
||||||
|
// Which of the identification links to display. Only works if $config['image_identification'] is true.
|
||||||
|
$config['image_identification_imgops'] = true;
|
||||||
|
$config['image_identification_exif'] = true;
|
||||||
|
$config['image_identification_google'] = true;
|
||||||
|
|
||||||
// Number of posts in a "View Last X Posts" page
|
// Number of posts in a "View Last X Posts" page
|
||||||
$config['noko50_count'] = 50;
|
$config['noko50_count'] = 50;
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
{% if post.thumb != 'file' and config.image_identification %}
|
{% if post.thumb != 'file' and config.image_identification %}
|
||||||
,
|
,
|
||||||
<span class='image_id'>
|
<span class='image_id'>
|
||||||
|
{% 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 }}{{ post.file }}">io</a>
|
||||||
{% if post.file|extension == 'jpg' %}
|
{% endif %}
|
||||||
|
{% if config.image_identification_exif and post.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 }}{{ post.file }}">e</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% 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 }}{{ post.file }}">g</a>
|
||||||
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user