From 826c3d6c2e7f42dfe8dcea624fb1c33cda7b1d8e Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 7 Oct 2023 16:31:14 -0400 Subject: [PATCH] TEMP: force RGB for grayscale PNG 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgen.sh b/fgen.sh index 2f1fb5b..8a700c7 100755 --- 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 -- 2.20.1