Need help resizing my cam image

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
Adrianwx23
Junior Boarder
Junior Boarder
Posts: 31
Joined: Thu Jul 14, 2016 2:33 am

Need help resizing my cam image

Post by Adrianwx23 »

Hello, i am using this overlay with cam and need some help making it a little bigger. What is the normal size for viewing in general? I realize this is just for the overlay but were do i actually go to change the size of the cam image?

-resize 852x480 -fill black -draw "fill-opacity 0.7 rectangle 0 440 852 480" -pointsize 12 -fill orange -draw "text 5 455 '[YYYY]-[MM]-[DD] [hh]:[mm]'" -fill white -draw "text 110 455 ' Temp: [th0temp-act=F.1:--] °F Humidity: [th0hum-act.0:--] % Pressure: [thb0seapress-act=mb.2:--] Wind: [wind0avgwind-act=mph.1:--] mph Gust: [wind0wind-max5=mph.1:--] mph'" -fill white -draw "text 110 475 'Rain today: [rain0total-sumday=in.2:--] in

As you can see below its set to 640 x480 and its just to small.

Image
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Need help resizing my cam image

Post by jasonmfarrow »

Adrian,

The very first item of the overlay code is the -resize command. This will take whatever the input size is and does it's best to shrink the image to the values set (852x640 as requested in your code).

What's the size of the original image from your web cam? It may be that if it's 1024x768 then you probably won't want to resize it at all...in which case remove the -resize 852x640 from your code. You'll have to adjust your data and box coordinates to align to your actual image size. Only if it's bigger than 1024x768 might you want to resize.

As always, trial and error.
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
Post Reply