Skip to content

kamiyaa/ruiji

Repository files navigation

ruiji

Description

Command that uploads a supported image format to http://iqdb.org, parses the subsequent html for similar image results and prompt the user which one to download.

Alt text

Dependencies

  • GNU Make
  • c library supporting c99
  • libcurl (preferably version >=7.51)
    • Must be built against either >=GnuTLS-3.3.24 or >=OpenSSL-1.1.0c
      • could work with other libraries (such as nss), but have not been tested

Installation

First, download the source using either HTTP or SSH:

$ git clone https://gitlab.com/Kamiyaa/ruiji.git
$ git clone git@gitlab.com:Kamiyaa/ruiji.git

Then install using make:

$ cd ruiji/src
$ make
# make install

Alternatively, you can install using meson:

$ meson build
$ ninja -C build/
# ninja -C build/ install

Usage

$ ruiji -h

Features

Currently supports:

Tips

This is how I usually use it when I have tons of pictures that I also would like to manually check

#!/bin/sh

for file
do
	ruiji -T -t 90 "$file" && gio trash "$file" && echo "removed $file"
	sleep 5		# enough time to rename/organize the newly downloaded file
done