pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

svg2png speedup


From: Ben Pfaff
Subject: svg2png speedup
Date: Mon, 16 Nov 2020 10:15:20 -0800

I pushed this patch just now.  I didn't notice a difference in the
output icons, but if anyone else does then I'm happy to revert it.

-8<--------------------------cut here-------------------------->8--

From: Ben Pfaff <blp@cs.stanford.edu>
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.29.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]