pointer: fix text annotation with png input files - 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 --- DIR commit 23974837d3bcf9cf3df07dadd0eff57cd846e7d8 DIR parent 855e323f12734b1eef3b4dc29be257388df07b66 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 17 Feb 2023 14:23:45 +0100 pointer: fix text annotation with png input files Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M pointer | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/pointer b/pointer @@ -14,6 +14,11 @@ case "$mimetype" in video/*) in="$(mktemp).jpg" ffmpeg -i "$1" -frames:v 1 "$in";; + image/png*) + # imagemagick text draw on png files is broken, + # tested on gentoo imagemagick version 7.1.0-48 + in="$(mktemp).jpg" + convert "$1" "$in";; image/*) in="$1";; *) @@ -36,3 +41,4 @@ convert \ -gravity northeast \ -draw "text -422,+20 '*${n}'" \ "$2" +