slcl/thumbnail
Xavier Del Campo Romero 2f1caebaae
README.md: Update according to thumbnail generation
2024-03-01 00:12:38 +01:00
..
CMakeLists.txt Add thumbnail generation tool 2024-03-01 00:12:38 +01:00
Makefile Add thumbnail generation tool 2024-03-01 00:12:38 +01:00
README.md README.md: Update according to thumbnail generation 2024-03-01 00:12:38 +01:00
cftw.c Add thumbnail generation tool 2024-03-01 00:12:38 +01:00
cftw.h Add thumbnail generation tool 2024-03-01 00:12:38 +01:00
crealpath.c Add thumbnail generation tool 2024-03-01 00:12:38 +01:00
crealpath.h Add thumbnail generation tool 2024-03-01 00:12:38 +01:00
main.c Add thumbnail generation tool 2024-03-01 00:12:38 +01:00

README.md

Thumbnail generation tool for slcl

This directory defines a separation application to be used in conjunction with slcl, aimed to update the thumbnail database automatically whenever files are added/removed to/from the database.

Root permissions

This application requires no root permissions. So, in order to avoid the risk for security bugs, please do not run this application as root.

Requirements

  • A POSIX environment.
  • dynstr (provided as a git submodule).
  • MagickCore
  • CMake (optional).

Ubuntu / Debian

Mandatory packages

sudo apt install build-essential libmagickcore-6.q16-dev

Optional packages

sudo apt install cmake

How to use

Build

Similarly to slcl, two build environments are provided - feel free to choose any of them:

thumbnail can be built using the standard build process:

Make

$ make

CMake

$ mkdir build/
$ cmake ..
$ cmake --build .

Usage

This tool only consumes one argument: the directory containing the instance database, which must be the same used by slcl. For example:

thumbnail ~/my-db