From 4209315823bdbff72cea7ec9defefed4692f648b Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Tue, 13 Jul 2021 21:04:21 -0500 Subject: Adjust brightness and contrast of polyguin. --- assets/images/polyguin.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/images/polyguin.sh b/assets/images/polyguin.sh index 1bf0df4..39daa8a 100755 --- a/assets/images/polyguin.sh +++ b/assets/images/polyguin.sh @@ -108,6 +108,7 @@ apk add graphicsmagick imagemagick; for c in color black white; do for r in x28 x54 x200; do gm convert -trim -density 600 -resize ${r} -background none polyguin_${c}.svg gen_polyguin_${c}_${r}.png; + magick convert -auto-level -brightness-contrast -5x+25 gen_polyguin_${c}_${r}.png gen_polyguin_${c}_${r}.png; chown 1000:1000 gen_polyguin_${c}_${r}.png; done # r done # c @@ -157,11 +158,11 @@ done # c # for r in x28 x54 x200; do # solid black color --> grayscale polyguin - magick convert -colorspace Gray -contrast-stretch 0 gen_polylogo_black_color_${r}.png gen_polylogo_black_mono_${r}.png; + magick convert -colorspace Gray gen_polylogo_black_color_${r}.png gen_polylogo_black_mono_${r}.png; chown 1000:1000 gen_polylogo_black_mono_${r}.png; # solid white color --> grayscale polyguin - magick convert -colorspace Gray -contrast-stretch 0 gen_polylogo_white_color_${r}.png gen_polylogo_white_mono_${r}.png; + magick convert -colorspace Gray gen_polylogo_white_color_${r}.png gen_polylogo_white_mono_${r}.png; chown 1000:1000 gen_polylogo_black_mono_${r}.png; done # r -- cgit v1.2.3-70-g09d2