Reqst: Integer Thumb Tiling/Autofit thumbs
Moderators: XnTriq, helmut, xnview
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Reqst: Integer Thumb Tiling/Autofit thumbs
I started paying attention to my own "unconscious" behaviors with XnView recently, both XnView 1.95 and MP. One discovery is that I seem to spend an inordinate amount of wasted time making the thumbs fit perfectly into the thumb panel.
In 1.95 I adjust the dividers for every layout change in order to make the thumbs exactly fit the horizontal space available. In MP, I perform a combination of divider adjustment and thumb-size adjustment to do the same thing.
Yes, it seems compulsive behavior, but having the thumbs fill the thumb panel is the most efficient use of the display real-estate.
In any case, please consider an option to automatically fit the image thumbnails to the size of the thumb panel a la Lightroom's behavior, filling the panel with thumbs.
In 1.95 I adjust the dividers for every layout change in order to make the thumbs exactly fit the horizontal space available. In MP, I perform a combination of divider adjustment and thumb-size adjustment to do the same thing.
Yes, it seems compulsive behavior, but having the thumbs fill the thumb panel is the most efficient use of the display real-estate.
In any case, please consider an option to automatically fit the image thumbnails to the size of the thumb panel a la Lightroom's behavior, filling the panel with thumbs.
John
-
- Moderator & Librarian
- Posts: 6190
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Great idea! I would also like to see some kind of auto-fit behavior of the thumbnail panel. Recently someone posted two screenshots which reminded me of just that:
Anonymous ([url=http://newsgroup.xnview.com/viewtopic.php?p=67711#67711]GUI bug - scrollbar not shown correctly[/url]) wrote:In layout 3 there is a GUI bug when hiding preview and tree.
Bug in version 1.94.2 and 1.95.
correct:
incorrect when hiding preview:
-
- Posts: 274
- Joined: Sat Dec 02, 2006 12:41 am
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
-
- XnThusiast
- Posts: 1610
- Joined: Wed Aug 16, 2006 6:31 am
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Bump +1! 
A nice solution would be this:
Having the following function...
...we will use it as follows:
When the user presses the 'Fit' button we'll call DoFitThumbs(ThumbsPane.NumberOfCols)
When user will press the '<' button we'll call DoFitThumbs(ThumbsPane.NumberOfCols+1) ("<" means smaller thumbs hence more columns)
When user will press the '>' button we'll call DoFitThumbs(ThumbsPane.NumberOfCols-1)
Note: the ThumbsPane.ActiveWidth is the width of the widget left for thumbnails. IOW the total width from which we extracted the Vertical scrollbar width, borders, bevels etc.

A nice solution would be this:
Having the following function...
Code: Select all
DoFitThumbs(aCols: integer)
{
if aCols>0 then //a small check, you know...
ThumbsHorizTrackBar.Position = Int(ThumbsPane.ActiveWidth / aCols);
//usually changing the position of the track bar / slider calls also the OnChange delegate to resize the thumbs. If not, we'll call it manually
//also, we rely on the Position's setter that it will trim the out of range values
}
When the user presses the 'Fit' button we'll call DoFitThumbs(ThumbsPane.NumberOfCols)
When user will press the '<' button we'll call DoFitThumbs(ThumbsPane.NumberOfCols+1) ("<" means smaller thumbs hence more columns)
When user will press the '>' button we'll call DoFitThumbs(ThumbsPane.NumberOfCols-1)
Note: the ThumbsPane.ActiveWidth is the width of the widget left for thumbnails. IOW the total width from which we extracted the Vertical scrollbar width, borders, bevels etc.
You do not have the required permissions to view the files attached to this post.
m. Th.
- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
-
- Posts: 274
- Joined: Sat Dec 02, 2006 12:41 am
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Mhh, seems weird to have "fit" to be a button you'd need to push every time the browse pane is resized.
imo it should a be either a toggle button or an option in the settings that once turned on:
imo it should a be either a toggle button or an option in the settings that once turned on:
- make the thumb size slider behaves like a step slider ranging from 1 thumb per row to 50 or whatever (you would then not need to add these 2 '< & >' buttons controls)
- call DoFitThumbs everytime the browse pane is resized.
-
- XnThusiast
- Posts: 1610
- Joined: Wed Aug 16, 2006 6:31 am
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Hmmm... ...then perhaps better like this?thibaud wrote:Mhh, seems weird to have "fit" to be a button you'd need to push every time the browse pane is resized.
imo it should a be either a toggle button or an option in the settings that once turned on:
- make the thumb size slider behaves like a step slider ranging from 1 thumb per row to 50 or whatever (you would then not need to add these 2 '< & >' buttons controls)
- call DoFitThumbs everytime the browse pane is resized.
Beware to update the slider position and min-max range.
You do not have the required permissions to view the files attached to this post.
m. Th.
- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
-
- Posts: 274
- Joined: Sat Dec 02, 2006 12:41 am
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Good point. Exactly.
Though id be curious to know why would someone prefer to use the "old" method (thumbs not fitting the view).
performance perhaps ?
Though id be curious to know why would someone prefer to use the "old" method (thumbs not fitting the view).
performance perhaps ?
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Me too. I'd wager that if the "new" method was presented "fait accompli", then no user would complain!Though id be curious to know why would someone prefer to use the "old" method
Perhaps the Browser's thumb slider should have integer position increments with markers indicating successive integers (and a larger marker at the default).
Here are two slider examples. The first is from one of my own applications, the second a proposal I made to the forum a while ago.

and

I also like the dropdown menu idea.
If this idea was combined with another idea expressed previously in the forum about adjusting the thumbnail aspect ratio, then perhaps a "splitter" between each row of thumbs could be used to change aspect ratio w/o changing the # of thumbs across.
Or here's another idea: maybe a simple grab handle in the lower right corner of the current thumb would suffice for everything the user needs...
The idea is to simultaneously increase user options for thumbs display while at the same time reducing the number of controls and placing them at the "top surface" of the UI.
John
-
- Author of XnView
- Posts: 40525
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
So if we set a number of thumbs, the thumbs are square??
Pierre.
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Hi Pierrexnview wrote:So if we set a number of thumbs, the thumbs are square??
I don't think so.
Instead, the thumb cartouche aspect ratio should reflect what ratio of height to width the user has set as a preference.
John
-
- XnThusiast
- Posts: 1610
- Joined: Wed Aug 16, 2006 6:31 am
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Nope (IMHO).xnview wrote:So if we set a number of thumbs, the thumbs are square??
If, as a user, I say: "I want 7 thumbs" I mean "I want 7 columns of thumbs" (see my pseudo-code in one of my prev posts)
Also, perhaps is nice to add the following commands (IDImager have them and are very useful, especially when assigned to a shortcut)
"One more thumbnail column"
"One less thumbnail column"
m. Th.
- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
-
- Author of XnView
- Posts: 40525
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Hum, if a user choose 192x128, so i keep this ratio?JohnFredC wrote:Instead, the thumb cartouche aspect ratio should reflect what ratio of height to width the user has set as a preference.
Pierre.
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Reqst: Integer Thumb Tiling/Autofit thumbs
Yes, exactly that!xnview wrote:Hum, if a user choose 192x128, so i keep this ratio?JohnFredC wrote:Instead, the thumb cartouche aspect ratio should reflect what ratio of height to width the user has set as a preference.

Keep the aspect ratio!
- 1. Set the width of the thumbnail cell:
2. Set the height of the thumbnail cell according to the user-defined aspect ratio:
Code: Select all
thumb_cell_width = (thumb_panel_width - (thumbs_across_slider+1) * spacing_setting)/thumbs_across_slider
3. Add the labels at the bottom of the thumbnail "cell" for "thumbs + filename" and "thumbs + labels" modeCode: Select all
thumb_cell_height= aspect_ratio* thumb_cell_width
Problem: What happens if user resizes the thumb panel? Should MP resize the thumbs to keep the same number of "cells" across?
Answer: Give the user a choice via a setting in the "thumbnail cell" settings:
- On resize thumb panel:
[x] Resize thumbs
In the future, perhaps MP could scan a folder for the "average" aspect ratio of images stored in the folder and automatically apply it to the thumb panel as part of the user's navigation process.

The user could select this behavior via a setting in the "thumbnail cell" panel:
- [x] When entering folder, set thumb aspect ratio to average aspect ratio in folder
John
-
- Author of XnView
- Posts: 40525
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France