Implement image identification buttons using regex.info/exif, google images and tineye
This commit is contained in:
parent
9a33867e65
commit
3dae5a8bc7
@ -468,6 +468,9 @@
|
|||||||
// Display the file's original filename
|
// Display the file's original filename
|
||||||
$config['show_filename']= true;
|
$config['show_filename']= true;
|
||||||
|
|
||||||
|
// Image identification buttons using regex.info/exif, tineye and google images
|
||||||
|
$config['image_identification'] = false;
|
||||||
|
|
||||||
// Redraw the image using GD functions to strip any excess data (commonly ZIP archives)
|
// Redraw the image using GD functions to strip any excess data (commonly ZIP archives)
|
||||||
// WARNING: Currently strips animated GIFs too
|
// WARNING: Currently strips animated GIFs too
|
||||||
$config['redraw_image'] = false;
|
$config['redraw_image'] = false;
|
||||||
@ -716,6 +719,11 @@
|
|||||||
else
|
else
|
||||||
$config['root'] = '/'; // CLI mode
|
$config['root'] = '/'; // CLI mode
|
||||||
|
|
||||||
|
// The scheme and domain. This is needed to get absolute URL of some page (for instance image
|
||||||
|
// identification buttons). If you use the CLI tools, it would be wise to override this setting.
|
||||||
|
$config['domain'] = (isset ($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? "https://" : "http://";
|
||||||
|
$config['domain'] .= isset ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost';
|
||||||
|
|
||||||
// If for some reason the folders and static HTML index files aren't in the current working direcotry,
|
// If for some reason the folders and static HTML index files aren't in the current working direcotry,
|
||||||
// enter the directory path here. Otherwise, keep it false.
|
// enter the directory path here. Otherwise, keep it false.
|
||||||
$config['root_file'] = false;
|
$config['root_file'] = false;
|
||||||
|
@ -71,6 +71,17 @@
|
|||||||
{{ post.filename }}
|
{{ post.filename }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% 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>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
@ -28,6 +28,16 @@
|
|||||||
{{ post.filename }}
|
{{ post.filename }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% 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>
|
</span></p>
|
||||||
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}>
|
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}>
|
||||||
|
Loading…
Reference in New Issue
Block a user