Skip to content

Commit

Permalink
Respect width
Browse files Browse the repository at this point in the history
Specify scale and clip width to force window to a particular width. See
paulhammond/webkit2png#12 and paulhammond/webkit2png#66 for details of
the underlying webkit2png issue.
  • Loading branch information
Tom Gregory committed Jul 17, 2014
1 parent 732d1d1 commit a2621ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geekWeather2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export TEMPLATE_URL='http://forecast.io/embed/#lat=$LAT&lon=$LON&name=$NAME&stat
export URL=$(echo $TEMPLATE_URL | sed -e "s/\$LAT/$1/" -e "s/\$LON/$2/" -e "s/\$NAME/$( rawurlencode "$3" )/")

echo "Converting to image"
webkit2png --width=300 --height=150 -F --transparent --delay=5 -o tmpWeather -D /tmp $URL
webkit2png --width=500 --clipwidth=500 --height=245 --scale=1 -F --transparent --delay=5 -o tmpWeather -D /tmp $URL

echo "Running image smoothing"
if [[ $4 == "LIGHT" ]]; then
Expand Down

0 comments on commit a2621ed

Please sign in to comment.