Page 1 of 1

Adding custom scale into "Montage" view

Posted: Sat Aug 12, 2017 4:11 pm
by nea1
Hi there,

Can anyone suggest how I can do that?
I would like to try 5/12.
1/2 view does not fit the screen in 3 rows
1/3 leaves unused space.

your advice appreciated.

Re: Adding custom scale into "Montage" view

Posted: Sun Aug 13, 2017 2:45 am
by rockedge
Here is how to add "5/12x" to the montage stream view size selection:

open /usr/share/zoneminder/www/skins/classic/includes/config.php
and change this code starting around line 33 from:

Code: Select all

$scales = array(
    "400" => "4x",
    "300" => "3x",
    "200" => "2x",
    "150" => "1.5x",
    "100" => translate('Actual'),
    "75" => "3/4x",
    "50" => "1/2x",
    "33" => "1/3x",
    "25" => "1/4x",
    "12.5" => "1/8x",
);
to ->

Code: Select all

$scales = array(
    "400" => "4x",
    "300" => "3x",
    "200" => "2x",
    "150" => "1.5x",
    "100" => translate('Actual'),
    "75" => "3/4x",
    "50" => "1/2x",
    "41" => "5/12x",
    "33" => "1/3x",
    "25" => "1/4x",
    "12.5" => "1/8x",
);
then open your montage viewer and the size should be there in the selections.

Re: Adding custom scale into "Montage" view

Posted: Mon Aug 14, 2017 9:13 am
by nea1
Thanks a lot for your help!

Re: Adding custom scale into "Montage" view

Posted: Mon Aug 21, 2017 1:20 pm
by Baylink
Great tip!