diff options
author | Zach van Rijn <me@zv.io> | 2021-07-13 21:04:21 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-13 21:04:21 -0500 |
commit | 4209315823bdbff72cea7ec9defefed4692f648b (patch) | |
tree | a2b4342f2bac5155befc942f5fe78c3d1cbe99ba | |
parent | d70dc4ff13b97b4560203d49f1cfa8e9f23ec321 (diff) | |
download | site-ng-4209315823bdbff72cea7ec9defefed4692f648b.tar.gz site-ng-4209315823bdbff72cea7ec9defefed4692f648b.tar.bz2 site-ng-4209315823bdbff72cea7ec9defefed4692f648b.tar.xz site-ng-4209315823bdbff72cea7ec9defefed4692f648b.zip |
Adjust brightness and contrast of polyguin.
-rwxr-xr-x | assets/images/polyguin.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 |