mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
0f94915fdf
* Add yandex images as image identification option * Update image_identification.html * Fix indentation Co-authored-by: Fred Brennan <copypaste@kittens.ph>
20 lines
1.1 KiB
HTML
20 lines
1.1 KiB
HTML
{% if file.thumb != 'file' and config.image_identification %}
|
|
<span class='image_id'>
|
|
{% if config.image_identification_imgops %}
|
|
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">ImgOps</a>
|
|
{% endif %}
|
|
{% if config.image_identification_exif and file.file|extension == 'jpg' %}
|
|
<a href="http://exif.int21h.win/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">Exif</a>
|
|
{% endif %}
|
|
{% if config.image_identification_google %}
|
|
<a href="https://www.google.com/searchbyimage?image_url={{ config.domain|url_encode }}{{ config.uri_img|url_encode }}{{ file.file|url_encode }}" target="_blank">Google</a>
|
|
{% endif %}
|
|
{% if config.image_identification_iqdb %}
|
|
<a href="http://iqdb.org/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">iqdb</a>
|
|
{% endif %}
|
|
{% if config.image_identification_yandex %}
|
|
<a rel="noreferrer" href="https://yandex.com/images/search?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}&rpt=imagelike" target="_blank">Yandex</a>
|
|
{% endif %}
|
|
</span>
|
|
{% endif %}
|