URI: 
       new tool: vtv-from-gif. - vtv-tools - virtual terminal video tools
  HTML git clone git://bitreich.org/vtv-tools  git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/vtv-tools
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 6658a9174596c05e184f19bb6b5574be5bef76e5
   DIR parent fce34a1e7458082e5c200f17dd8c685e46a36eac
  HTML Author: Troels Henriksen <athas@sigkill.dk>
       Date:   Wed,  7 Aug 2024 22:08:41 +0200
       
       new tool: vtv-from-gif.
       
       Diffstat:
         A bin/vtv-from-gif                    |      32 +++++++++++++++++++++++++++++++
         A man/vtv-from-gif.1                  |      26 ++++++++++++++++++++++++++
       
       2 files changed, 58 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/bin/vtv-from-gif b/bin/vtv-from-gif
       @@ -0,0 +1,32 @@
       +#!/bin/sh
       +
       +set -e
       +
       +if [ $# -ne 1 ]; then
       +    echo "Usage: $0 FILE.gif > OUT.vtv"
       +    exit 1
       +fi
       +
       +if ! which magick; then
       +    echo "'magick' not found on PATH."
       +    exit 1
       +fi
       +
       +if ! which vtv-from-ff; then
       +    echo "'vtv-from-ff' not found on PATH."
       +    exit 1
       +fi
       +
       +gif=$1
       +
       +tmp=$(mktemp -d vtv-from-gif-XXXXXX)
       +
       +magick "$1" "$tmp/vtv.ff"
       +
       +for ff in "$tmp"/*.ff; do
       +    vtv-from-ff ${ff}
       +done
       +
       +cat "$tmp"/*.vtv
       +
       +rm -rf "$tmp"
   DIR diff --git a/man/vtv-from-gif.1 b/man/vtv-from-gif.1
       @@ -0,0 +1,26 @@
       +.Dd August 7, 2024
       +.Dt VTV-FROM-GIF 1
       +.Os
       +.
       +.Sh NAME
       +.Nm vtv-from-gif
       +.Nd convert gif to vtv
       +.
       +.Sh SYNOPSIS
       +.Nm
       +.Bk
       +.Op Ar FILE
       +.Ek
       +.
       +.Sh DESCRIPTION
       +.Bd -filled
       +.Nm
       +is a tool for converting gif files to vtv. Each gif frame is convered
       +to a vtv frame, and the vtv printed to stdout.
       +.
       +Requires
       +.Xr vtv-from-ff 1
       +to be on PATH.
       +.
       +.Sh LICENSE
       +The vtv-tools are released under the GPLv3 or later.