TEMP: force RGB for grayscale PNG
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 20:31:14 +0000 (16:31 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 8 Oct 2023 21:11:22 +0000 (17:11 -0400)
Fix this error/warning message:
$ convert -colorspace sRGB test5.psd[318] f318.png
convert-im6.q16: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `f318.png' @ warning/png.c/MagickPNGWarningHandler/1668.

fgen.sh

diff --git a/fgen.sh b/fgen.sh
index 2f1fb5b..8a700c7 100755 (executable)
--- a/fgen.sh
+++ b/fgen.sh
@@ -354,7 +354,7 @@ if [ ${trames} -eq 1 ]; then
             else
                 convert -colorspace sRGB -page +0+0 ${dest}/background.png \
                         ${files} -background none -layers merge \
-                        ${fname}
+                        PNG32:${fname}
             fi
 
             if [ x"${dup_from}" != x"" ]; then