Colors for Thumbnails, Overlay Icons size

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

User avatar
xnview
Author of XnView
Posts: 43988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Colors for Thumbnails, Overlay Icons size

Post by xnview »

michel038 wrote: Thu Sep 29, 2022 10:32 am Is there a workaround ?
Do you have a info@2x.png?
Pierre.
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Colors for Thumbnails, Overlay Icons [solved]

Post by michel038 »

XnTriq wrote: Mon Nov 22, 2021 6:30 pm What are the correct dimensions for info.png and info@2x.png?

Related bug report: Overlay icon for sidecar files
- info.png is used for Windows display at 100%.
The first one (169 x 11) was probably used for versions 0.97 and older (Pierre's attachment 2020 Nov)

The 2nd one (165 x 15 ) is OK

- info@2x.png has to be used when windows display is different from 100% (?)
The "xnviewmp" attachment for info@2x.png (316 x 22) seems OK.
Xnview wrote:Do you have a info@2x.png?
-Yes now ...., I didn't find this anywhere before re-reading this post, but XnTriq did ...
I'll try it in some days, and provide a coloured version
Last edited by michel038 on Thu Dec 15, 2022 4:45 pm, edited 1 time in total.
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Colors for Thumbnails, Overlay Icons [solved]

Post by michel038 »

Windows default scale (100%)
  • Default icons info.png
    Image (165×11) from xnviewmp.exe
  • Coloured icons
    info.png
    (165x11)

Windows display scale at 125%
Create an "icons" folder inside xnviewmp's installation folder.
Copy info.png or info@2x.png into this folder.
Restart xnviewmp ...

When using info@2x coloured version, I can see sometimes a rounding error of 1 pixel, but this is not critical ...
( for the forum: screenshot 300% enlargement and jpg quality loss )
overlay.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by michel038 on Wed Dec 14, 2022 3:12 pm, edited 2 times in total.
User avatar
XnTriq
Moderator & Librarian
Posts: 6354
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Colors for Thumbnails, Overlay Icons size

Post by XnTriq »

Merci beaucoup, michel038 :-) Great post!
User avatar
XnTriq
Moderator & Librarian
Posts: 6354
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Colors for Thumbnails, Overlay Icons size

Post by XnTriq »

I created this SVG file a year ago as proof of concept.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="316" height="22" viewBox="0 0 316 22" clip-rule="evenodd" fill-rule="evenodd">
<rect fill="lime" width="316" height="22" />
<g>
<path fill="red" d="m0 0l36 0 0 21 -36 0 0 -21zm1 1l34 0 0 19 -34 0 0 -19z" />
<path fill="red" d="m36 0l36 0 0 21 -36 0 0 -21zm1 1l34 0 0 19 -34 0 0 -19z" />
<path fill="red" d="m72 0l29 0 0 21 -29 0 0 -21zm1 1l27 0 0 19 -27 0 0 -19z" />
<path fill="red" d="m101 0l21 0 0 21 -21 0 0 -21zm1 1l19 0 0 19 -19 0 0 -19z" />
<path fill="red" d="m122 0l21 0 0 21 -21 0 0 -21zm1 1l19 0 0 19 -19 0 0 -19z" />
<path fill="red" d="m143 0l21 0 0 21 -21 0 0 -21zm1 1l19 0 0 19 -19 0 0 -19z" />
<path fill="red" d="m164 0l19 0 0 21 -19 0 0 -21zm1 1l17 0 0 19 -17 0 0 -19z" />
<path fill="red" d="m183 0l21 0 0 21 -21 0 0 -21zm1 1l19 0 0 19 -19 0 0 -19z" />
<path fill="red" d="m204 0l33 0 0 21 -33 0 0 -21zm1 1l31 0 0 19 -31 0 0 -19z" />
<path fill="red" d="m237 0l28 0 0 21 -28 0 0 -21zm1 1l26 0 0 19 -26 0 0 -19z" />
<path fill="red" d="m265 0l29 0 0 21 -29 0 0 -21zm1 1l27 0 0 19 -27 0 0 -19z" />
<path fill="red" d="m294 0l22 0 0 22 -22 0 0 -22zm1 1l20 0 0 20 -20 0 0 -20z" />
</g>
</svg>
To give it a try, save the following “code” as info@2x.png and copy it to the icons subdirectory of your XnView MP installation.

p183004_1.png
p183004.png
You do not have the required permissions to view the files attached to this post.
User avatar
gonefinishing
Posts: 17
Joined: Fri Aug 07, 2009 12:04 am

Re: Colors for Thumbnails, Overlay Icons size

Post by gonefinishing »

I wonder what I may have missed here (verified my Windows is at 100% zooming, create the Icons folder, etc.) but, try as I may, I couldn't get this to work.

Is anyone able to help me, please?
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Colors for Thumbnails, Overlay Icons size

Post by michel038 »

Did you create 'icons folder' or 'Icons folder' ?

The right one is without capital letter,
... containing info.png or info@2x.png
User avatar
gonefinishing
Posts: 17
Joined: Fri Aug 07, 2009 12:04 am

Re: Colors for Thumbnails, Overlay Icons size

Post by gonefinishing »

michel038 wrote: Sat Sep 09, 2023 5:29 pm Did you create 'icons folder' or 'Icons folder' ?

The right one is without capital letter,
... containing info.png or info@2x.png
The thing is it's named exactly 'icons' as it can be seen, with lower-case i, the info.png file inside it and all:

Image

Not having a dodo of what's quite going on yet.
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Colors for Thumbnails, Overlay Icons size

Post by michel038 »

Maybe XnViewMP folder or icons folder is protected by Windows (read/write rights ? or try to open xnviewmp as an admin ? )