From e859653266a80ca25a3478af2db37e78371211e3 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Wed, 27 Apr 2022 15:39:38 -0700 Subject: [PATCH] Fix postprocess convert command for alpha channels On occasion the author would save his image as a .gif with transparency when he (most likely) intended to leave the parts white. This was already accounted for in the `convert` command, but the wrong flags were being used. This should be fixed now (compare strip from 2002-09-11) Signed-off-by: Alek Ratzloff --- postprocess.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postprocess.sh b/postprocess.sh index 82ea454..f44cb52 100755 --- a/postprocess.sh +++ b/postprocess.sh @@ -32,11 +32,11 @@ for date in "${dates[@]}"; do if [[ -z "$alt_text" ]]; then convert "$image_in" \ - -background white -alpha background \ + -background white -alpha remove -alpha off \ "$image_out" else convert "$image_in" \ - -background white -alpha background \ + -background white -alpha remove -alpha off \ -gravity center \ -pointsize 12 -size 360x caption:"$alt_text" \ -append \