From 328f9a9c6219e432140ad846c1c08f1856aa8b39 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 16 Nov 2020 10:13:21 -0800 Subject: [PATCH] svg2png: Speed up gimp startup with -d option. This option prevents gimp from loading patterns, gradients, palettes, and brushes. I think that these are mostly for interactive use. I didn't see any difference in output quality. On my system this sped up "make -f Smake -j128 icons" from 1.8 to 1.6 seconds. On other systems I guess it will make a bigger difference. --- build-aux/svg2png | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/svg2png b/build-aux/svg2png index d00e109521..f98b76cea7 100755 --- a/build-aux/svg2png +++ b/build-aux/svg2png @@ -24,7 +24,7 @@ esac echo "Converting" $1 "to" $3 "size" $width"x"$width comment=`cat $2` -gimp -i -b "\ +gimp -i -d -b "\ (let* ((image (car (file-svg-load 1 \"$1\" \"$1\" 90 $width $width 0 )))) (gimp-image-attach-parasite image '(\"gimp-comment\" 0 \"$comment\")) (gimp-file-save 1 image (car (gimp-image-get-active-drawable image)) -- 2.30.2