1.11.5: grid, divisions, square fails

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

KarelT
Posts: 7
Joined: Sun Jul 05, 2026 2:58 pm

1.11.5: grid, divisions, square fails

Post by KarelT »

XnView: MP 1.11.5 - 64 bit
OS: Windows 10 64bit

IMHO the behavior of the Square checkbox in Grid settings is inconsistent. If so, very minor bug at worst IMHO, just reporting.

Effect: inconsistent behavior, minor annoyance

To reproduce:
1. In Grid Settings...
2. When using Horizontal Spacing (Vertical can be in any state), checking the checkbox Square creates square grid.
3. When using Horizontal Divisions (Vertical can be in any state), checking the checkbox Square does not create square grid (see the attached image).

Actual behaviour (bug): see step 3. above

Expected behaviour: In Grid Settings, when using Horizontal Divisions (Vertical can be in any state), checking the checkbox Square CREATES square grid.

Best!
K
You do not have the required permissions to view the files attached to this post.
jkm
Posts: 632
Joined: Sat May 11, 2024 12:43 am

Re: 1.11.5: grid, divisions, square fails

Post by jkm »

KarelT wrote: Tue Jul 07, 2026 3:25 pm 2. When using Horizontal Spacing (Vertical can be in any state), checking the checkbox Square creates square grid.
3. When using Horizontal Divisions (Vertical can be in any state), checking the checkbox Square does not create square grid (see the attached image).
Please fix your post. #2 and #3 are duplicates (and contradictory).

When using Vertical spacing, checking "Square" disables Vertical and no grid is produced at all! :bug:

When using Horizontal spacing, a non-square grid is created.


I agree that the action of the "Square" option is at least bad behavior, or a bug.

All "Square" does not is duplicate the Horizontal parameter as the Vertical parameter. This has almost no value, because it is trivially easy to do manually.

Better behavior would be for it to actually produce a grid that has SQUARE sections, and save users doing the math of calculating the needed grid size to create square sections for the aspect ratio of the current image (which would have to be changed on a per-image basis).

Suggested behavior:

-Square only applies to DIVISIONS based grids

-If Horizontal is used, the number of Vertical bands is adjusted as necessary to keep the grid square
-If Vertical is used, the number of Horizontal bands is adjusted as necessary to keep the grid square

Example:
On an image that is 1600x1200, with a 10-division Horizontal grid:
Grid is 160x160 pixels, with 10 bands horizontally and 7.5 bands vertically