Next Version - Wish for constrain camera proportions

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post 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.
v1.25.0 + Ubuntu Linux 12.04 Server
Post Reply