From: Hugo Villeneuve Date: Sat, 7 Oct 2023 20:31:14 +0000 (-0400) Subject: TEMP: force RGB for grayscale PNG X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=826c3d6c2e7f42dfe8dcea624fb1c33cda7b1d8e;p=fgen.git 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. --- 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