Skip to content

Commit

Permalink
Update script to generate less blurry images
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra committed Jul 31, 2014
1 parent e27c59d commit 5e6b74e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/generate-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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" \
Expand Down

0 comments on commit 5e6b74e

Please sign in to comment.