Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-09-06 13:27:58 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-09-06 13:27:58 +0300
commite3e8ce08a6adeab415885c8da2a629a205bfe6ae (patch)
tree1d38484bb4683eb889f8045cfdb7f45afc433035
parent14e47472fe00e3d66d2ba14fb19bcfc86c0daad5 (diff)
Add script which scales splash screen down
Based on reading documentation around. This particular version is based on the ImageMagic documentation which could be found there: http://www.imagemagick.org/Usage/filter/ http://www.imagemagick.org/Usage/filter/nicolas/ Current filter is based on measuring mean error with the current splash screen and choosing combination of parameters which gives minimal mean error.
-rwxr-xr-xrelease/datafiles/splash_scale.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/release/datafiles/splash_scale.sh b/release/datafiles/splash_scale.sh
new file mode 100755
index 00000000000..8a3f2c6d1eb
--- /dev/null
+++ b/release/datafiles/splash_scale.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Use this script to generate splash.png from splash_2x.png.
+# Supposed to give best quality image.
+#
+# Based on ImageMagic documentation, which is interesting
+# to read anyway:
+#
+# http://www.imagemagick.org/Usage/filter
+# http://www.imagemagick.org/Usage/filter/nicolas/
+
+convert \
+ splash_2x.png \
+ -colorspace RGB \
+ -filter Cosine \
+ -resize 50% \
+ -colorspace sRGB \
+ splash.png