From 05f40fae75db1bf5b29a2a79b87766444d546bef Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Wed, 22 Jan 2025 19:29:20 +0100 Subject: [PATCH] =?UTF-8?q?=C2=A0add=20intertitres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/linkfarmer.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tools/linkfarmer.sh b/tools/linkfarmer.sh index 3101552..4a11663 100755 --- a/tools/linkfarmer.sh +++ b/tools/linkfarmer.sh @@ -32,13 +32,24 @@ linkfarm () { SRC="frames/$1" echo "linkfarm $SRC" | tee -a WS/log + +local INTER="/dev/shm/tmp-intertitre.png" tools/plot-timing.sh $1 -local NBRE=60 +local NBRE=90 +convert "WS/negatif.png" \ + -gravity north \ + -font $FONTE \ + -pointsize 96 \ + -kerning 6 \ + -fill $TEXTCOL \ + -strokewidth 2 -stroke $STROKOL \ + -annotate +0+390 "$1" \ + ${INTER} for foo in $(seq 0 $NBRE) do - copy_a_file "WS/negatif.png" + copy_a_file $INTER done for foo in $(seq 0 $NBRE) @@ -70,14 +81,14 @@ convert -colorspace gray -colors 27 $SRC $GRAY for foo in $(seq 0 $NBRE) do Ypos=$(( -175 + foo )) - convert ${GRAY} \ + convert ${GRAY} \ -gravity north \ -font $FONTE \ -pointsize 172 \ -kerning 6 \ -fill $TEXTCOL \ -strokewidth 3 -stroke $STROKOL \ - -annotate +0+${Ypos} "HexaCone" \ + -annotate +0+${Ypos} "HexaCones" \ ${TMP} # identify ${TMP} copy_a_file ${TMP}