Page 1 of 1

Need help resizing my cam image

Posted: Mon Jan 17, 2022 8:41 pm
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

Re: Need help resizing my cam image

Posted: Tue Jan 18, 2022 4:34 pm
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.