Adding custom scale into "Montage" view

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

Adding custom scale into "Montage" view

Post by nea1 » Sat Aug 12, 2017 4:11 pm

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: 478
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Adding custom scale into "Montage" view

Post by rockedge » Sun Aug 13, 2017 2:45 am

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: 4
Joined: Thu Feb 25, 2016 10:45 am

Re: Adding custom scale into "Montage" view

Post by nea1 » Mon Aug 14, 2017 9:13 am

Thanks a lot for your help!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests