Introduction
Introduction Statistics Contact Development Disclaimer Help
pointer: fix text annotation with png input files - annna - Annna the nice frie…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 23974837d3bcf9cf3df07dadd0eff57cd846e7d8
parent 855e323f12734b1eef3b4dc29be257388df07b66
Author: Anders Damsgaard <[email protected]>
Date: Fri, 17 Feb 2023 14:23:45 +0100
pointer: fix text annotation with png input files
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M pointer | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
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"
+
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.