From 593560956c629fb2df9b97b5afe9c1eb2666652b Mon Sep 17 00:00:00 2001 From: Jano Slota Date: Tue, 6 May 2014 19:15:59 +0200 Subject: [PATCH] Added configurabe image identification --- inc/config.php | 6 +++++- templates/post/image_identification.html | 10 +++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/inc/config.php b/inc/config.php index da4eff4c..955973ae 100644 --- a/inc/config.php +++ b/inc/config.php @@ -742,8 +742,12 @@ // Display the file's original filename. $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; + // 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 $config['noko50_count'] = 50; diff --git a/templates/post/image_identification.html b/templates/post/image_identification.html index 3d3bd655..a6e4e48d 100644 --- a/templates/post/image_identification.html +++ b/templates/post/image_identification.html @@ -1,10 +1,14 @@ {% if post.thumb != 'file' and config.image_identification %} , - io - {% if post.file|extension == 'jpg' %} + {% if config.image_identification_imgops %} + io + {% endif %} + {% if config.image_identification_exif and post.file|extension == 'jpg' %} e {% endif %} - g + {% if config.image_identification_google %} + g + {% endif %} {% endif %}