URI: 
       satanic-ritual - annna - Annna the nice friendly bot.
  HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
       ---
       satanic-ritual (583B)
       ---
            1 #!/bin/sh
            2 
            3 die() {
            4         printf '%s\n' "$1" >&2
            5         exit 1
            6 }
            7 
            8 if test $# -ne 2; then
            9         die "usage: ${0##*/} <file> <outimagefile>"
           10 fi
           11 
           12 mimetype="$(file -ib "$1")"
           13 case "$mimetype" in
           14         video/*)
           15                 in="$(mktemp).jpg"
           16                 ffmpeg -i "$1" -frames:v 1 "$in";;
           17         image/*)
           18                 in="$1";;
           19         *) 
           20                 die "file type '${mimetype}' not supported";;
           21 esac
           22 
           23 magick convert /home/annna/bin/modules/filter-media/ritual.jpg \
           24         \( "${in}" \
           25                 -matte \
           26                 -virtual-pixel transparent \
           27                 -resize 140x140 \
           28                 -shear -30x-4 \
           29                 -rotate -5 \
           30                 -transparent white \
           31         \) \
           32         -geometry +20+130 \
           33         -gravity center \
           34         -composite "$2"