Page 2 of 2

Posted: Fri Dec 28, 2007 7:30 pm
by cordel
zoneminder wrote:I missed this thread the first time around I think but I have added an entry into bugzilla. The only thing I am a bit concerned about is hardcoding the 3/4 ratio but that may be able to be worked around.
robi wrote:Use the settings dialog, add an option like ZM_DEFAULT_ASPECT_RATIO, with two text boxes separated by ":". By default they should contain 4:3, but the user can enter any default aspect ratio he/she wants. This saves in the db as a global option.

In the monitor settings on the Source tab, add a checkbox called 'Keep aspect ratio', then whenever width or height is changed, the other one gets calculated based on the formula above with the values from the settings. If the Checkbox is cleared, the re-calculation doesn't occur. All the values, including checkbox value, are saved in the database, on a per monitor basis (default: Checked).
Or how about a drop box in the monitor config to select ratios or custom this would help keep it on a per monitor basis.

Posted: Fri Dec 28, 2007 7:50 pm
by zoneminder
I have now applied this change locally so it will be in the next version. As it turned out my remote monitors are all 4:3 (ie 320x240) but my analog cams are all 11:9 (352x288) so I have made the ratio a config option.

Posted: Mon Dec 31, 2007 6:54 pm
by robi
ZM_WEB_MONTAGE_WIDTH and ZM_WEB_MONTAGE_HEIGHT in Options could use the same feature, as they relate to each other in the same way.