Skip to content

Conversation

@SteveGilvarry
Copy link
Member

When creating a new monitor with Orientation set to ROTATE_90 or ROTATE_270, the default "All" zone dimensions are now correctly swapped to match the rotated image dimensions. This prevents zm_zone.cpp from reporting that zones extend outside of image dimensions and having to fix them at runtime.

Fixes issue where monitors created with Rotate Right or Rotate Left would generate warnings like:
"Zone 1/All for monitor X extends outside of image dimensions, (0,0), (3839,2159) != (2160,3840), fixing"

Also you can see it when you look at the All zone below, the zone is wrong orientation and extends beyond image range. Editing the zone will bring it back to a square.

image

When creating a new monitor with Orientation set to ROTATE_90 or
ROTATE_270, the default "All" zone dimensions are now correctly swapped
to match the rotated image dimensions. This prevents zm_zone.cpp from
reporting that zones extend outside of image dimensions and having to
fix them at runtime.

Fixes issue where monitors created with Rotate Right or Rotate Left
would generate warnings like:
"Zone 1/All for monitor X extends outside of image dimensions,
(0,0), (3839,2159) != (2160,3840), fixing"

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@connortechnology connortechnology merged commit 1c066bf into ZoneMinder:master Jan 8, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants