summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-02 16:50:40 +0100
committertv <tv@nomic.retiolum>2013-11-02 16:50:40 +0100
commit4b4ae982b83692c5c86bef9145c366069f4acf43 (patch)
tree5db338086242d7d0bf7d140ad725a2e5f717bebd /util
parent8a1ecacac2f3f9475fbde6e165e27bf6e2aca583 (diff)
parent0a14aad47e6a1c54e602bd984075f19d0c8cb6c8 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'util')
-rwxr-xr-xutil/bin/make-realwallpaper13
1 files changed, 10 insertions, 3 deletions
diff --git a/util/bin/make-realwallpaper b/util/bin/make-realwallpaper
index f8081337..ba2c6853 100755
--- a/util/bin/make-realwallpaper
+++ b/util/bin/make-realwallpaper
@@ -173,13 +173,20 @@ make_gcloud_cloudmask() {
if needs_rebuild gcloud-normal.png gcloud-raw.png; then
echo "make gcloud-normal.png; normalize gcloud-raw.png" >&2
- convert gcloud-raw.png -scale $gcloud_in_size gcloud-normal.png
+ convert -flatten gcloud-raw.png \
+ -scale $gcloud_in_size gcloud-normal.png
+ fi
+
+ if needs_rebuild gcloud-distmap.png; then
+ convert -size 2048x2048 gradient: -rotate 180 \
+ -fx "p{i, (asinh(tan((j/h+0.5)*pi))/2.6+0.5) * h }" \
+ gcloud-distmap.png
fi
if needs_rebuild gcloud-cloudmask.png gcloud-normal.png; then
echo 'make gcloud-cloudmask.png' &&
- convert -flatten gcloud-normal.png \
- -fx 'p{i,(asinh(tan((j/h+0.5)*pi))/2.6+0.5)*h}' \
+ convert gcloud-normal.png gcloud-distmap \
+ -fx 'p{i,v*h}' \
-crop $gcloud_out_geometry \
gcloud-cloudmask.png
fi