0.91: Icons for non-image files display improperly in thumbnail view

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

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
Sablesword
Posts: 25
Joined: Sat Oct 25, 2014 12:17 am

0.91: Icons for non-image files display improperly in thumbnail view

Post by Sablesword »

XnView: MP 0.91 - 64 bit
OS: Windows 7 Pro - 64 bit

Icons for text, pdf, archive, and "other" file types do not display properly in the browser. Sizes and positions vary with icon or file type.

To reproduce:
1. Set view>"view as" to "thumbnails" or "thumbnails + filenames/lables/details"
2. In settings, uncheck "show as thumbnail" in Browser - File list/Custom filter tab for non-image files

Actual behavior (bug): Icons for non-image files display in different sizes, with some icons showing as reduced size in the upper left corner, some icons large and centered, and some icons small and centered.

Expected behaviour: Icons for non-image files should all be centered and set to "medium" size.
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by xnview »

could you post a screenshot?
Pierre.
Sablesword
Posts: 25
Joined: Sat Oct 25, 2014 12:17 am

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by Sablesword »

Returning late - but the problem persists in 0.92
badthumb.png
The zip and rtf files show small icons in the upper left corner instead of centered, while the txt icon is big and malformed.

EDIT:
in 0.90 the same folder looks like this:
ok90thumb.png
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by xnview »

I can't reproduce, ZIP (7zip installed) and RTF icons are correct
Pierre.
Sablesword
Posts: 25
Joined: Sat Oct 25, 2014 12:17 am

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by Sablesword »

Well, I'm using custom icons. The issues seem to be:
1. Icons with a maximum size of 32x32 or 48x48 get pushed to the upper left corner, rather than being centered.
2. In 256x256 icons, black is treated as transparent.

I'm attaching two of my custom icon files. You'll have to associate them with a file type to see the bug, since if you view the .ico files themselves in XnviewMP, they look OK.
Attachments
icon files.zip
(23.48 KiB) Downloaded 32 times
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by xnview »

Sablesword wrote: Wed Nov 28, 2018 12:41 pm You'll have to associate them with a file type to see the bug
How do you change default icons?
Pierre.
Sablesword
Posts: 25
Joined: Sat Oct 25, 2014 12:17 am

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by Sablesword »

For Windows 7 (and higher) the easiest way is probably to use "Default Programs Editor" http://defaultprogramseditor.com/
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.91: Icons for non-image files display improperly in thumbnail view

Post by xnview »

ok, it seems to be a problem between such icon & lastest version of QT libraries (that i use)
Pierre.
Post Reply