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 <alekratz@gmail.com>
This commit is contained in:
2022-04-27 15:39:38 -07:00
parent 66c054ce70
commit e859653266

View File

@@ -32,11 +32,11 @@ for date in "${dates[@]}"; do
if [[ -z "$alt_text" ]]; then if [[ -z "$alt_text" ]]; then
convert "$image_in" \ convert "$image_in" \
-background white -alpha background \ -background white -alpha remove -alpha off \
"$image_out" "$image_out"
else else
convert "$image_in" \ convert "$image_in" \
-background white -alpha background \ -background white -alpha remove -alpha off \
-gravity center \ -gravity center \
-pointsize 12 -size 360x caption:"$alt_text" \ -pointsize 12 -size 360x caption:"$alt_text" \
-append \ -append \