Difference between revisions of "Weather Cam Image Handling"
From meteobridge
(→resized image to 640 x 480 (ignore aspect ratio)) |
|||
Line 3: | Line 3: | ||
===original image (720 x 540)=== | ===original image (720 x 540)=== | ||
[[File:pic1.jpg]] | [[File:pic1.jpg]] | ||
+ | |||
===cut off header, new size (720x490)=== | ===cut off header, new size (720x490)=== | ||
Line 9: | Line 10: | ||
Overlay text: | Overlay text: | ||
<pre>-crop 720x490+0+50</pre> | <pre>-crop 720x490+0+50</pre> | ||
+ | |||
===adding weather data as overlay text=== | ===adding weather data as overlay text=== | ||
Line 15: | Line 17: | ||
Overlay text: | Overlay text: | ||
<pre>-fill black -draw "fill-opacity 0.7 rectangle 0 520 720 540" -pointsize 12 -fill orange -draw "text 5 535 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 535 'Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=inhg.2:--] inHg Wind Chill: [wind0chill-act=F.1:--]°F Wind: [wind0avgwind-act=mph.1:--] mph Rain: [rain0total-sumday=in.2:--] in'" -crop 720x490+0+50</pre> | <pre>-fill black -draw "fill-opacity 0.7 rectangle 0 520 720 540" -pointsize 12 -fill orange -draw "text 5 535 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 535 'Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=inhg.2:--] inHg Wind Chill: [wind0chill-act=F.1:--]°F Wind: [wind0avgwind-act=mph.1:--] mph Rain: [rain0total-sumday=in.2:--] in'" -crop 720x490+0+50</pre> | ||
+ | |||
===resize image to 640 x 480 (ignore aspect ratio)=== | ===resize image to 640 x 480 (ignore aspect ratio)=== | ||
Line 21: | Line 24: | ||
Overlay text: | Overlay text: | ||
<pre>-fill black -draw "fill-opacity 0.7 rectangle 0 520 720 540" -pointsize 12 -fill orange -draw "text 5 535 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 535 'Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=inhg.2:--] inHg Wind Chill: [wind0chill-act=F.1:--]°F Wind: [wind0avgwind-act=mph.1:--] mph Rain: [rain0total-sumday=in.2:--] in'" -crop 720x490+0+50 -resize 640x480!</pre> | <pre>-fill black -draw "fill-opacity 0.7 rectangle 0 520 720 540" -pointsize 12 -fill orange -draw "text 5 535 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 535 'Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=inhg.2:--] inHg Wind Chill: [wind0chill-act=F.1:--]°F Wind: [wind0avgwind-act=mph.1:--] mph Rain: [rain0total-sumday=in.2:--] in'" -crop 720x490+0+50 -resize 640x480!</pre> | ||
+ | |||
+ | |||
+ | ===changing contrast=== | ||
+ | [[FIle:pic5.jpg]] | ||
+ | |||
+ | Overlay text: | ||
+ | <pre>-sigmoidal-contrast 4% -crop 720x490+0+50</pre> |
Revision as of 22:09, 13 October 2013
This page is intended to give some examples what Meteobridges weather image conversion with the Linux tool convert can offer. I selected this freely available image from Univerity of Arizona as an example to do some comversions with.
Contents
original image (720 x 540)
cut off header, new size (720x490)
Overlay text:
-crop 720x490+0+50
adding weather data as overlay text
Overlay text:
-fill black -draw "fill-opacity 0.7 rectangle 0 520 720 540" -pointsize 12 -fill orange -draw "text 5 535 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 535 'Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=inhg.2:--] inHg Wind Chill: [wind0chill-act=F.1:--]°F Wind: [wind0avgwind-act=mph.1:--] mph Rain: [rain0total-sumday=in.2:--] in'" -crop 720x490+0+50
resize image to 640 x 480 (ignore aspect ratio)
Overlay text:
-fill black -draw "fill-opacity 0.7 rectangle 0 520 720 540" -pointsize 12 -fill orange -draw "text 5 535 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 535 'Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=inhg.2:--] inHg Wind Chill: [wind0chill-act=F.1:--]°F Wind: [wind0avgwind-act=mph.1:--] mph Rain: [rain0total-sumday=in.2:--] in'" -crop 720x490+0+50 -resize 640x480!
changing contrast
Overlay text:
-sigmoidal-contrast 4% -crop 720x490+0+50