From 4759dde0e941bcdd8df373b629a1df238a311cf5 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Mon, 9 Sep 2019 13:58:18 +0200 Subject: spritegen.pl: Move compression to "make prod" I think this is the last one. 'make' in a development environment is now beautifully fast and 'make prod' generates nicely small assets. (arguably we could have an even faster dev setup by not generating an icons.png in the first place, but then we'd need more code to differentiate between dev & prod, which is also a pain) This change does remove the "slow" option that would use the compressed image size in the optimization algorithm, but I hadn't used that option for a while anyway, it takes an hour and only saves about 100 bytes. --- data/config_example.pl | 7 ------- 1 file changed, 7 deletions(-) (limited to 'data/config_example.pl') diff --git a/data/config_example.pl b/data/config_example.pl index df48f5ef..30731d08 100644 --- a/data/config_example.pl +++ b/data/config_example.pl @@ -39,10 +39,3 @@ $M{db_login} = { dbname => 'vndb', user => 'vndb_multi', password => 'vndb_multi # pass => '', # masters => [ 'yorhel!~Ayo@your.hell' ], #}; - - -# Uncomment to generate an extra small icons.png -# (note: using zopflipng or pngcrush with the slow option is *really* slow, but compresses awesomely) -#$SPRITEGEN{crush} = '/usr/bin/pngcrush -q'; -#$SPRITEGEN{crush} = '/usr/bin/zopflipng -m --lossy_transparent'; -#$SPRITEGEN{slow} = 1; -- cgit v1.2.3