Page 1 of 1

Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Tue Feb 08, 2022 6:17 am
by twcamsec
Just upgraded to 1.36.12 and I am having some visibility challenges with the (lack of) scaling option on the enhanced hover-over view with WEB_ANIMATE_THUMBS enabled. This feature in the web options is listed as "Enlarge and show the live stream when a thumbnail is hovered over (?)" Previously on the earlier 1.34.x version, I think it just animated the event view with the same size, now it animates AND enlarges ... and that is where I have issues with the presentation.

Normally, my events list view right-side preview is set to be 320 pixels wide, and with a full 1080p camera recordings/events the hover-over pop-up view is now apparently an up-scaled full size (if not full sized, abnormally large) image, so one can only see a small portion of the camera frame/view animation because the resulting image is so large. I like being able to see the animations, but I want to be able to see the whole image animated when scanning through events, without having to open (each) event fully.

I gave a cursory look into the code without much luck -- is there a quick or easy place to change something in the CSS or event animation display code so that the result is a "no enlargement" option for the hover-over event animation?

For a future release, any chance we can have a web animation thumbs "scale" option (for either a max pixels or max scale ratio for the thumbnail pop-up view) for the hover over event animations?

Thanks in advance for suggestions or for considering this as a potential future enhancement! Thanks for all you do!

Re: Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Tue Feb 08, 2022 8:38 am
by dougmccrary
I think a variable scaling option may be in the works, but right now it's fixed at 5x. So try maybe 160 to fit the screen better.
That seems to be an absolute size, so camera res doesn't matter, it seems.
Absent a restart, the change will take several minutes to take effect.

That's on 1.36.12 on Ubuntu Bionic.

Re: Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Tue Feb 08, 2022 9:49 am
by Magic919
This previous thread mentions the coding. viewtopic.php?p=123901&hilit=Scale#p123901

Re: Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Wed Feb 09, 2022 5:45 am
by twcamsec
Thanks for the replies! I've tried bumping down the scale multiplier from 5 to 2 in:

www/ajax/events.php
www/ajax/snapshots.php
www/ajax/watch.php

Then restarted the web server and it doesn't seem to have reduced the huge hover-over sizes. I must've missed something or a few other locations?

Thanks!

Re: Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Wed Feb 09, 2022 10:10 am
by dougmccrary
Between list and animate.
Either width or height. Not both.

Re: Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Thu Feb 10, 2022 7:21 am
by twcamsec
For what it's worth, the final file changes that made the difference were in: www/skins/classic/css/base/skin.css

You can reduce the over-sized scaled pop-up windows by editing the two scale setting values. Here's a sample diff:

File: /usr/share/zoneminder/www/skins/classic/css/base/skin.css

Code: Select all

<   transform: scale(5); /* (arbitray zoom value - Note if the zoom is too large, it will go outside of the viewport) */
---
>   transform: scale(3); /* (arbitray zoom value - Note if the zoom is too large, it will go outside of the viewport) */
724c724
<   transform: scale(5); /* (arbitray zoom value - Note if the zoom is too large, it will go outside of the viewport) */
---
>   transform: scale(3); /* (arbitray zoom value - Note if the zoom is too large, it will go outside of the viewport) */
Maybe this hard-coded setting will land into a configuration item someday if we're lucky.

Re: Needed scaling of pop-up view when WEB_ANIMATE_THUMBS option is enabled?

Posted: Thu Feb 10, 2022 5:08 pm
by Magic919
If people put some money up for the Devs it’ll increase the chances.