summaryrefslogtreecommitdiffstats
path: root/util/bin/make-realwallpaper
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-10-31 01:00:21 +0100
committertv <tv@nomic.retiolum>2013-10-31 01:00:21 +0100
commitefcc038b9c7712a2caf64826e44c241bff1ef060 (patch)
treed0734024ef7975306fae18d65e56b13f5cf1e373 /util/bin/make-realwallpaper
parentdbc86d58919b21c8d5b54bbd2016956d4df88214 (diff)
make-realwallpaper: define out_geometry once
Diffstat (limited to 'util/bin/make-realwallpaper')
-rwxr-xr-xutil/bin/make-realwallpaper9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/bin/make-realwallpaper b/util/bin/make-realwallpaper
index 97b4c0b7..89b65314 100755
--- a/util/bin/make-realwallpaper
+++ b/util/bin/make-realwallpaper
@@ -25,6 +25,7 @@ main() {
check_type clouds-raw.jpg image
in_size=1466x1200
+ out_geometry=1366x768+100+160
nightsnow_color='#0c1a49' # nightmap
#nightsnow_color='#0a3b5c' # nightmap-old
@@ -116,22 +117,22 @@ EOF
EOF
# rebuild every time to update shadow
- xplanet --num_times 1 --geometry 1466x1200 \
+ xplanet --num_times 1 --geometry $in_size \
--output xplanet-output.png --projection merc -config xplanet.config
# rebuild everytime satellite version
- xplanet --num_times 1 --geometry 1466x1200 \
+ xplanet --num_times 1 --geometry $in_size0 \
--output xplanet-sat-output.png --projection merc -config xplanet-sat.config
# trim xplanet output
needs_rebuild realwallpaper.png \
xplanet-output.png \
- && convert xplanet-output.png -crop 1366x768+100+160 realwallpaper.png
+ && convert xplanet-output.png -crop $out_geometry realwallpaper.png
# trim xplanet-sat output
needs_rebuild realwallpaper-sat.png \
xplanet-sat-output.png \
- && convert xplanet-sat-output.png -crop 1366x768+100+160 realwallpaper-sat.png
+ && convert xplanet-sat-output.png -crop $out_geometry realwallpaper-sat.png
}
# usage: getimg FILENAME URL