From 5e6b74ea3397f35be00b6ad147bb38fb983228eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Mari=C8=99?= Date: Thu, 31 Jul 2014 23:33:11 +0300 Subject: [PATCH] Update script to generate less blurry images Ref: alrra/browser-logos#49 --- bin/generate-images.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/generate-images.sh b/bin/generate-images.sh index 04e1fab013..292fa6a188 100755 --- a/bin/generate-images.sh +++ b/bin/generate-images.sh @@ -58,6 +58,13 @@ generate_group_image() { # http://www.imagemagick.org/script/convert.php#options convert "${tmp[@]}" \ + -colorspace RGB \ + +sigmoidal-contrast 11.6933 \ + -define filter:filter=Sinc \ + -define filter:window=Jinc \ + -define filter:lobes=3 \ + -sigmoidal-contrast 11.6933 \ + -colorspace sRGB \ -background transparent \ -gravity center \ -resize 512x512 \ @@ -92,6 +99,13 @@ generate_images() { # Generate the different sized versions of an image for s in ${imageSizes[@]}; do convert "${path}.png" \ + -colorspace RGB \ + +sigmoidal-contrast 11.6933 \ + -define filter:filter=Sinc \ + -define filter:window=Jinc \ + -define filter:lobes=3 \ + -sigmoidal-contrast 11.6933 \ + -colorspace sRGB \ -background transparent \ -gravity center \ -resize "$s" \