Thumbnail View BUG in TC10
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
I will check it, thanks for your detailed tests.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 8
- Joined: 2021-11-07, 15:31 UTC
Re: Thumbnail View BUG in TC10
Dear Ghisler,
thank you!
Best regards,
Slobodan
thank you!
Best regards,
Slobodan
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
I have checked the code. It's caused by the new zooming feature:
1. When ThumbIconSize is smaller (<=) than the thumbnail size (zoomed or not), then ThumbIconSize will be used directly.
Example: ThumbIconSize=256, thumbnail size 256 or larger
2. When ThumbIconSize is larger (>) than the thumbnail size (zoomed or not), the icon size is reduced to one of the following fixed values:
16, 32 48 pixels.
In beta 6 and older, the icon size was reduced to the thumbnail size, which would look bad with many icons.
I don't want to go back to that, so maybe I should add a few more fixed sizes, e.g.
16, 32 48, 64, 96, 128, 192, 256 pixels when ThumbIconSize is larger (>) than the thumbnail size.
Or alternatively do the full zooming when ThumbIconSize is set to a certain minimum size like 128 or 256?
What do you think?
1. When ThumbIconSize is smaller (<=) than the thumbnail size (zoomed or not), then ThumbIconSize will be used directly.
Example: ThumbIconSize=256, thumbnail size 256 or larger
2. When ThumbIconSize is larger (>) than the thumbnail size (zoomed or not), the icon size is reduced to one of the following fixed values:
16, 32 48 pixels.
In beta 6 and older, the icon size was reduced to the thumbnail size, which would look bad with many icons.
I don't want to go back to that, so maybe I should add a few more fixed sizes, e.g.
16, 32 48, 64, 96, 128, 192, 256 pixels when ThumbIconSize is larger (>) than the thumbnail size.
Or alternatively do the full zooming when ThumbIconSize is set to a certain minimum size like 128 or 256?
What do you think?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Thumbnail View BUG in TC10
It seems to me that you use < and not <= because a thumbnail size of 256x256 in my book equals a ThumbIconSize of 2561. When ThumbIconSize is smaller (<=) than the thumbnail size (zoomed or not), then ThumbIconSize will be used directly.
As it is now I have to experiment to find out that a setting of ThumbIconSize=220 will give a folder icon larger than 48 pixels. It would be more intuitive that if the two sizes are equal then they will both be used.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
On which Windows version did you try that?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Thumbnail View BUG in TC10
That was on Windows 7.
I have now tried on Windows 10 21H1 and there:
ThumbWidthNoCache=256
ThumbHeightNoCache=256
ThumbIconSize=256
works, showing 256 pixel folder icons
But under Windows 7 I need to use:
ThumbWidthNoCache=256
ThumbHeightNoCache=256
ThumbIconSize=220
to get the 256 pixels folder icons
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
That's because on Windows 7, a single item in a listbox can have a maximum height of 255 pixel (including the text below the image).
I added a fix in beta 7 for this:
22.04.21 Fixed: On Windows 10 older than 1709 (Fall 2017) and older Windows versions, scale thumbnails if the size entered by the user is larger than 240, so the line would become higher than 255 pixels (32/64)
Without this fix, the lines could be only a few pixels high.
I added a fix in beta 7 for this:
22.04.21 Fixed: On Windows 10 older than 1709 (Fall 2017) and older Windows versions, scale thumbnails if the size entered by the user is larger than 240, so the line would become higher than 255 pixels (32/64)
Without this fix, the lines could be only a few pixels high.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Thumbnail View BUG in TC10
2ghisler(Author)
Aha - but still I have to use the value of 220 for ThumbIconSize and not 240 to get a full thumbnail (1 line of text under thumbnail) - so it seems that not quite the same algoritm is used for ThumbIconSize and ThumbHeightNoCache.
Aha - but still I have to use the value of 220 for ThumbIconSize and not 240 to get a full thumbnail (1 line of text under thumbnail) - so it seems that not quite the same algoritm is used for ThumbIconSize and ThumbHeightNoCache.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
Yes, because 255 is the maximum for the entire line, including the icon, the file name, and any extra fields.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
Please try this with Total Commander 10.50 beta, it should be fixed.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Thumbnail View BUG in TC10
In TC 10.50b2 32bit and 64bit under Windows 7, I can now use ThumbIconSize=256 to show 256 pixel folder icons 

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Thumbnail View BUG in TC10
Great, thanks for trying! While the function to set the line height doesn't support values >255 in Windows 7, I can recreate the listbox with the larger height, so that's what I'm doing now.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com