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

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
twcamsec
Posts: 5
Joined: Fri Apr 14, 2017 2:01 am

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

Post 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!
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post 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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

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

Post by Magic919 »

This previous thread mentions the coding. viewtopic.php?p=123901&hilit=Scale#p123901
-
twcamsec
Posts: 5
Joined: Fri Apr 14, 2017 2:01 am

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

Post 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!
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post by dougmccrary »

Between list and animate.
Either width or height. Not both.
twcamsec
Posts: 5
Joined: Fri Apr 14, 2017 2:01 am

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

Post 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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

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

Post by Magic919 »

If people put some money up for the Devs it’ll increase the chances.
-
Post Reply