Adding custom scale into "Montage" view

Forum for questions and support relating to the 1.31.x releases only.
Locked
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Adding custom scale into "Montage" view

Post 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.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Adding custom scale into "Montage" view

Post 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.
nea1
Posts: 10
Joined: Thu Feb 25, 2016 10:45 am

Re: Adding custom scale into "Montage" view

Post by nea1 »

Thanks a lot for your help!
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Re: Adding custom scale into "Montage" view

Post by Baylink »

Great tip!
Locked